/* ============================================
   EM Simulator - Ant Design UI (minimal overrides)
   ============================================ */

html,
body,
#root {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
}

/* Keep the old module light-mode contract: modules check body[data-theme="light"] */
body {
    background: #0b1020;
}

body[data-theme="light"] {
    background: #f5f5f5;
}

.em-app {
    height: 100%;
}

.em-header-title {
    line-height: 1.2;
}

.em-header-subtitle {
    display: block;
    margin-top: 2px;
    opacity: 0.75;
}

/* Canvas */
.em-canvas-card {
    flex: 1;
    min-height: 280px;
}

.em-canvas-card .ant-card-body {
    height: 100%;
    padding: 0;
}

.em-canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.em-canvas {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
}

/* MathJax formula area */
.em-formula {
    overflow-x: auto;
}

.em-formula p {
    margin: 0 0 8px;
}

.em-formula p:last-child {
    margin-bottom: 0;
}


