body {
    font-family: system-ui, sans-serif;
    background: #111;
    color: #eee;
    padding: 20px;
    margin: 0;
    padding-bottom: 48px;
}

.container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.left-pane {
    flex: 1;
    min-width: 400px;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    height: fit-content;
}

.right-pane {
    width: 320px;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    height: fit-content;
    top: 20px;
}

.right-pane h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #fff;
}

.info-section {
    margin-bottom: 20px;
}

.info-section h4 {
    margin: 10px 0 8px 0;
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
}

.info-section p {
    margin: 5px 0;
    font-size: 13px;
    line-height: 1.5;
}

.info-section ul,
.info-section ol {
    margin: 5px 0;
    font-size: 13px;
    line-height: 1.5;
    margin: 1.5em;
    padding: 0;
}

.warning-box {
    background: #2c2000;
    border-left: 3px solid #ff9800;
    padding: 12px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
}

.warning-box strong {
    color: #ff9800;
}

.danger-box {
    background: #2c1515;
    border-left: 3px solid #f44336;
    padding: 12px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
}

.danger-box strong {
    color: #f44336;
}

.left-pane h2 {
    margin: 0 0 25px 0;
    font-size: 24px;
    color: #fff;
}

.control-section {
    margin-bottom: 25px;
}

.control-section h3 {
    margin: 0 0 12px 0;
    font-size: 14px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    font-weight: 600;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

button {
    padding: 12px 16px;
    margin: 0;
    font-size: 14px;
    background: #0d47a1;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

button:hover:not(:disabled) {
    background: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.4);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

button:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.file-input-wrapper {
    margin: 8px 0;
}

input[type="file"] {
    padding: 8px;
    background: #000;
    border: 1px solid #333;
    border-radius: 4px;
    color: #eee;
    cursor: pointer;
    font-size: 13px;
}

input[type="file"]::file-selector-button {
    padding: 8px 12px;
    background: #0d47a1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 8px;
    transition: background 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
    background: #1565c0;
}

.progress-section {
    margin-bottom: 25px;
}

.progress-section h3 {
    margin: 0 0 12px 0;
    font-size: 14px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    font-weight: 600;
}

progress {
    width: 100%;
    height: 24px;
    border-radius: 4px;
    background: #000;
    border: 1px solid #333;
    overflow: hidden;
}

progress::-webkit-progress-bar {
    background: #000;
    border-radius: 4px;
}

progress::-webkit-progress-value {
    background: linear-gradient(90deg, #4caf50, #45a049);
    border-radius: 4px;
}

progress::-moz-progress-bar {
    background: linear-gradient(90deg, #4caf50, #45a049);
    border-radius: 4px;
}

#log {
    background: #000;
    padding: 12px;
    height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'Courier New', monospace;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.6;
}

#log::-webkit-scrollbar {
    width: 8px;
}

#log::-webkit-scrollbar-track {
    background: #000;
}

#log::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

#log::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.ok {
    color: #4caf50;
}

.warn {
    color: #ff9800;
}

.err {
    color: #f44336;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .right-pane {
        width: 100%;
        position: static;
    }
}

.site-warning-banner {
    background: linear-gradient(90deg, #fff5f5, #ffecec);
    border: 1px solid #f5c2c7;
    color: #600;
    padding: 12px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin: 8px 0;
}

.site-warning-content {
    max-width: 900px;
}

.site-warning-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.site-warning-banner strong {
    font-size: 16px;
}

.site-warning-dismiss {
    padding: 6px 10px;
    border-radius: 4px;
}

.site-warning-notice {
    margin-top: 6px;
    font-size: 13px;
    color: #400;
}

#site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    height: 40px;
    padding: 6px 12px;
}

#site-footer a {
    color: #9fe0ff;
    text-decoration: none;
    margin-left: 6px;
}