* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

main {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1 { margin-bottom: 0.25rem; }
.version { font-size: 0.5em; font-weight: 400; color: #aaa; }
.subtitle { color: #666; margin-bottom: 2rem; }
h2 { margin-bottom: 1rem; }
h3 { margin: 1rem 0 0.5rem; font-size: 0.95rem; }

#drop-zone {
    border: 2px dashed #aaa;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

#drop-zone:hover,
#drop-zone.dragover {
    border-color: #4a90d9;
    background: #eef4fb;
}

#file-info {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#file-name {
    font-weight: 600;
}

button {
    background: #4a90d9;
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
}

button:hover { background: #3a7bc8; }
button:disabled { background: #aaa; cursor: not-allowed; }

#status-section { margin-top: 1.5rem; }
#status-message { color: #666; }

#result-section { margin-top: 2rem; }

#convert-btn { margin-top: 1rem; }

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th { background: #fafafa; font-weight: 600; }

.col-check { width: 2.5rem; text-align: center; }
.col-check input { cursor: pointer; }

.variant-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #e8e8e8;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.85rem;
    margin: 0.1rem;
    white-space: nowrap;
}

.variant-status { font-size: 0.75rem; line-height: 1; }

.svg-list {
    font-size: 0.85rem;
    color: #666;
}

.font-upload-filename {
    font-size: 0.8rem;
    color: #666;
}

/* Auto Font Upload */
#font-auto-upload { margin-bottom: 1.5rem; }

#font-auto-drop-zone {
    border: 2px dashed #aaa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    color: #888;
}

#font-auto-drop-zone:hover,
#font-auto-drop-zone.dragover {
    border-color: #4a90d9;
    background: #eef4fb;
}

#font-auto-results {
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.auto-result-item {
    padding: 0.25rem 0;
}

.auto-result-matched { color: #2d7a2d; }
.auto-result-unmatched { color: #c33; }
.auto-result-rejected { color: #c33; }

/* Report */
#report-section { margin-top: 2rem; }

.report-table td:first-child {
    font-weight: 600;
    color: #666;
    padding-right: 2rem;
}

#download-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: #4a90d9;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
}

#download-link:hover { background: #3a7bc8; }
