body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 20px;
    zoom: 0.90;
    background: #181818;
    color: #eef8e6;
    line-height: 1.3;
}

h1 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #f0f6ff;
}

h2 {
    margin-top: 10px;
    font-size: 16px;
    color: #cdcdcd;
}

p {
    margin: 8px 0 10px;
    color: #cdcdcd;
}

input[type="file"],
textarea {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 0;
    background: #181818;
    color: #cdcdcd;
    font-family: monospace;
    font-size: 14px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

button,
.copy,
.toggle {
    background: #2f2f2f;
    color: #f0f6ff;
    border: 1px solid #555;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-top: 12px;
}

button:hover,
.copy:hover,
.toggle:hover {
    background: #666666;
}

button {
    padding: 10px 10px;
}

.copy {
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 6px;
}

.toggle {
    padding: 10px 16px;
    font-size: 14px;
}

.row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.card {
    background: #1F1F1F;
    padding: 13px 10px;
    margin: 10px auto;
    max-width: 1900px;
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.out {
    background: #181818;
    padding: 10px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 13px;
    overflow-x: auto;
}

.note {
    background: #1B1B1B;
    border-left: 4px solid #555555;
    padding: 12px;
    border-radius: 8px;
    margin: 16px 0;
    font-family: monospace;
    font-size: 13px;
    color: #E055E0;
    overflow-x: auto;
}

.warning {
    background: #2b1a1a;
    border-left: 4px solid #e05555;
    padding: 12px;
    border-radius: 8px;
    margin: 12px 0;
    color: #ffc4c4;
    font-size: 14px;
}

code {
    background: #181818;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.step.show {
    display: block !important;
    animation: fadeSlideIn 0.5s ease forwards;
}

.example-content-wrapper,
.explanation-content-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, margin-top 0.4s ease;
    padding: 0 12px;
    margin-top: 0;
}

.example-content-wrapper.show,
.explanation-content-wrapper.show {
    padding: 12px;
    margin-top: 12px;
    max-height: 1000px;
}

.example-content,
.explanation-content {
    background: #181818;
    border-left: 4px solid #E055E0;
    border-radius: 6px;
    padding: 12px 12px 12px 16px;
    font-family: monospace;
    font-size: 13px;
    overflow-x: auto;
    color: #c4c4c4;
}

.example-content pre,
.explanation-content p {
    margin: 4px 0;
}

.example-content pre code,
.explanation-content pre code {
    color: #C355C3;
    font-weight: 500;
}

.steps-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.steps-container .step:first-child {
    flex: 0 0 35%;
    box-sizing: border-box;
}

.steps-container .step:nth-child(2) {
    flex: 0 0 60%;
    border-left: 1px solid #444;
    padding-left: 20px;
    box-sizing: border-box;
}

.mips-container {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
}

.mips-container textarea {
    flex: 0 0 55%;
    min-width: 200px;
    max-width: 210px;
    height: 365px;
    resize: vertical;
}

.explanation-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 200px;
}

#mipsResult {
    max-height: 200px;
    overflow-y: auto;
}

.warning,
.note,
.tip {
    width: 100%;
    box-sizing: border-box;
}

.header-line {
    color: #cdcdcd;
    font-weight: bold;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #222222;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}