body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 32px;
    background: linear-gradient(135deg, #f9fafb 0%, #eef2f7 100%);
    color: #1f2933;
}

h1 {
    margin: 0 0 16px;
    font-size: 24px;
    letter-spacing: 0.2px;
}

.panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    padding: 20px;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 4px 0;
}

label {
    font-weight: 600;
}

input[type="file"],
select {
    font-size: 14px;
}

select {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    min-width: 140px;
}

#status {
    display: inline-block;
    min-height: 20px;
    color: #475569;
    font-size: 14px;
}

.canvas-wrap {
    margin-top: 8px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #0f172a;
    padding: 12px;
    display: inline-block;
    max-width: 100%;
    align-self: flex-start;
}

canvas {
    display: block;
    border-radius: 8px;
    max-width: 100%;
}

.parts-panel {
    margin-top: 16px;
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
}

.parts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.parts-table th,
.parts-table td {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.parts-table th {
    font-weight: 700;
}

.parts-links a {
    margin-right: 10px;
    color: #0f172a;
    text-decoration: none;
}

.parts-links a:hover {
    text-decoration: underline;
}
