:root {
      --bg: #0f1117;
      --text: #e2e8f0;
      --accent: #ff4757;
      --panel: #1e222d;
    }
    body, html {
      margin: 0;
      padding: 0;
      height: 100%;
      background: var(--bg);
      color: var(--text);
      font-family: 'Inter', -apple-system, sans-serif;
      overflow: hidden;
    }
    #app {
      display: flex;
      flex-direction: column;
      height: 100vh;
      transition: transform 0.05s ease-out;
    }
    header {
      height: 60px;
      background: var(--panel);
      display: flex;
      align-items: center;
      padding: 0 20px;
      justify-content: space-between;
      border-bottom: 1px solid #333;
      z-index: 10;
    }
    h1 {
      font-size: 18px;
      margin: 0;
      color: #a4b1cd;
    }
    #combo-container {
      font-size: 24px;
      font-weight: 900;
      color: var(--accent);
      text-shadow: 0 0 10px rgba(255, 71, 87, 0.8);
      transition: transform 0.1s;
    }
    .combo-pop {
      transform: scale(1.4);
    }
    #main {
      display: flex;
      flex: 1;
      overflow: hidden;
    }
    #editor {
      flex: 1;
      background: var(--bg);
      color: var(--text);
      border: none;
      border-right: 1px solid #333;
      padding: 20px;
      font-family: 'Courier New', Courier, monospace;
      font-size: 16px;
      line-height: 24px;
      resize: none;
      outline: none;
      z-index: 5;
    }
    #preview {
      flex: 1;
      padding: 20px 40px;
      overflow-y: auto;
      line-height: 1.6;
      z-index: 5;
    }
    #preview h1, #preview h2 {
      border-bottom: 1px solid #333;
      padding-bottom: 0.3em;
    }
    #preview blockquote {
      border-left: 4px solid var(--accent);
      padding-left: 1em;
      color: #888;
      margin-left: 0;
    }
    #preview code {
      background: var(--panel);
      padding: 2px 4px;
      border-radius: 4px;
      font-family: monospace;
    }
    #preview pre code {
      background: transparent;
      padding: 0;
    }
    #preview pre {
      background: var(--panel);
      padding: 16px;
      border-radius: 8px;
      overflow-x: auto;
    }
    #canvas {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 9999;
    }