body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 600px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

h1, p { text-align: center; }
h1 { color: #1a2533; }
p { color: #667; margin-bottom: 30px; }
.codec-box { margin-bottom: 30px; border-top: 1px solid #e0e0e0; padding-top: 20px; }
h2 { margin-top: 0; color: #445; }

form { display: flex; flex-direction: column; gap: 10px; }
label { font-weight: bold; color: #556; }
textarea, input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}
textarea { height: 100px; resize: vertical; }
textarea[readonly] { background-color: #f9f9f9; }

button {
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}
button:hover { background-color: #0056b3; }

#carrier-preview {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 5px;
    align-self: center;
}

.result-box { margin-top: 15px; }

.error {
    color: #d93025;
    background-color: #fce8e6;
    border: 1px solid #f9c6c2;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
    display: none;
}

.emoji-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    max-height: 250px;
    overflow-y: auto;
}

.emoji-grid img {
    width: 64px;
    height: 64px;
    cursor: pointer;
    border-radius: 8px;
    border: 3px solid transparent;
    transition: all 0.2s ease-in-out;
}

.emoji-grid img:hover {
    transform: scale(1.1);
    border-color: #a0cfff;
}

.emoji-grid img.selected {
    border-color: #007bff;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.loader {
    color: #888;
}

.or-divider {
    text-align: center;
    font-style: italic;
    color: #888;
    margin-top: 20px;
}

.small-note {
    font-size: 13px;
    color: #667;
    text-align: left;
    margin-top: -5px;
    margin-bottom: 10px;
}