.itu-uploader {
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    color: #111827;
}

.itu-uploader *,
.itu-uploader *::before,
.itu-uploader *::after {
    box-sizing: border-box;
}

.itu-uploader [hidden] {
    display: none !important;
}

.itu-uploader br {
    display: none;
}

.itu-uploader__dropzone {
    padding: 36px 28px 32px;
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    background: #ffffff;
    font-size: 0;
    text-align: center;
}

.itu-uploader__dropzone:hover,
.itu-uploader__dropzone.is-dragging {
    border-color: #6366f1;
    background: #f8faff;
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.08);
}

.itu-uploader__dropzone.is-dragging {
    border-color: #4f46e5;
}

.itu-uploader__upload-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: #eef2ff;
    color: #4f46e5;
    place-items: center;
}

.itu-uploader__upload-icon svg {
    width: 24px;
    height: 24px;
}

.itu-uploader__drop-title {
    margin: 0;
    font-size: 18px;
    font-weight: 650;
}

.itu-uploader__paste-hint {
    margin: 6px 0 12px;
    color: #94a3b8;
    font-size: 13px;
}

.itu-uploader__button {
    display: inline-flex;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 10px;
    background: #111827;
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 650;
    align-items: center;
    justify-content: center;
}

.itu-uploader__button:hover {
    background: #1f2937;
}

.itu-uploader__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.itu-uploader__input:focus-visible + .itu-uploader__button {
    outline: 2px solid #4f46e5;
    outline-offset: 3px;
}

.itu-uploader__hint {
    margin: 10px 0 0;
    color: #94a3b8;
    font-size: 13px;
}

.itu-uploader__live-photo-note {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.itu-uploader__trust {
    display: flex;
    gap: 8px 24px;
    margin: 14px 0 0;
    padding: 0;
    color: #64748b;
    font-size: 13px;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

.itu-uploader__trust li {
    margin: 0;
}

.itu-uploader__trust span,
.itu-uploader__ready span {
    color: #15803d;
    font-weight: 700;
}

.itu-uploader__status {
    min-height: 22px;
    margin: 10px 0 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.itu-uploader__status.uploading {
    color: #4f46e5;
}

.itu-uploader__status.success {
    color: #15803d;
}

.itu-uploader__status.error {
    color: #dc2626;
}

.itu-uploader__result {
    margin-top: 34px;
}

.itu-uploader__result-card {
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.itu-uploader__result-summary {
    display: flex;
    gap: 16px;
    min-width: 0;
    align-items: center;
}

.itu-uploader__preview-frame {
    position: relative;
    display: flex;
    flex: 0 0 112px;
    width: 112px;
    height: 112px;
    padding: 8px;
    border-radius: 13px;
    background: #f8fafc;
    align-items: center;
    justify-content: center;
}

.itu-uploader__gif-placeholder {
    display: grid;
    width: 76px;
    height: 76px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #e2e8f0;
    color: #475569;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.08em;
    place-items: center;
}

.itu-uploader__gif-preview-toggle {
    position: absolute;
    right: 6px;
    bottom: 6px;
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
}

.itu-uploader__gif-preview-toggle:hover {
    background: #0f172a;
}

.itu-uploader__gif-preview-toggle:focus-visible {
    outline: 2px solid var(--pic2url-blue, #026ffd);
    outline-offset: 2px;
}

.itu-uploader__preview {
    display: block;
    width: auto;
    max-width: 96px;
    height: auto;
    max-height: 96px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    object-fit: contain;
}

.itu-uploader__file-details {
    display: flex;
    gap: 6px;
    min-width: 0;
    align-items: flex-start;
    flex-direction: column;
}

.itu-uploader__file-name {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    font-size: 16px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.itu-uploader__file-meta {
    display: flex;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    align-items: center;
}

.itu-uploader__file-meta span + span::before {
    margin-right: 8px;
    color: #cbd5e1;
    content: "•";
}

.itu-uploader__result-notice {
    max-width: 560px;
    margin: 4px 0 0;
    color: #166534;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.itu-uploader__url-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.itu-uploader__result-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.itu-uploader__result-heading {
    display: flex;
    gap: 8px 16px;
    margin-bottom: 14px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.itu-uploader__ready {
    margin: 0;
    color: #15803d;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.itu-uploader__format-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #f1f5f9;
}

.itu-uploader__format-tab {
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.itu-uploader__format-tab:hover {
    color: #0f172a;
}

.itu-uploader__format-tab[aria-selected="true"] {
    background: #ffffff;
    color: var(--pic2url-blue, #026ffd);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.itu-uploader__format-panels {
    margin-top: 12px;
}

.itu-uploader__format-panel[hidden] {
    display: none;
}

.itu-uploader__result-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.itu-uploader__format-output {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    min-height: 64px;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    resize: none;
}

.itu-uploader__copy-button {
    flex: 0 0 136px;
    width: 136px;
    min-height: 64px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: var(--pic2url-blue, #026ffd);
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 150ms ease, opacity 150ms ease;
}

.itu-uploader__copy-button:hover {
    background: #005dcc;
}

.itu-uploader__copy-button:disabled {
    background: #93c5fd;
    cursor: not-allowed;
    opacity: 0.75;
}

.itu-uploader__result-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 16px;
}

.itu-uploader__action {
    display: inline-flex;
    width: 100%;
    height: 48px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    transition:
        border-color 150ms ease,
        background-color 150ms ease,
        color 150ms ease;
}

.itu-uploader__action:hover {
    border-color: var(--pic2url-blue, #026ffd);
    background: #f4f8ff;
    color: var(--pic2url-blue, #026ffd);
}

.itu-uploader__format-tab:focus-visible,
.itu-uploader__copy-button:focus-visible,
.itu-uploader__action:focus-visible {
    outline: 2px solid var(--pic2url-blue, #026ffd);
    outline-offset: 2px;
}

.itu-uploader__action-status {
    min-height: 20px;
    margin: 8px 0 0;
    color: #15803d;
    font-size: 13px;
}

.itu-uploader__action-status.is-error {
    color: #dc2626;
}

.itu-uploader__related-tools {
    display: flex;
    gap: 8px 16px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.itu-uploader__related-title {
    margin: 0;
    font-weight: 600;
}

.itu-uploader__related-list {
    display: flex;
    gap: 6px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.itu-uploader__related-list li {
    margin: 0;
}

.itu-uploader__related-list a {
    color: var(--pic2url-blue, #026ffd);
    font-weight: 600;
    text-decoration: none;
}

.itu-uploader__related-list a:hover {
    color: #005dcc;
    text-decoration: underline;
}

@media (max-width: 719px) {
    .itu-uploader__dropzone {
        padding: 30px 16px 28px;
        border-radius: 16px;
    }

    .itu-uploader__trust {
        gap: 6px 16px;
    }

    .itu-uploader__result-card {
        padding: 14px;
        border-radius: 14px;
    }

    .itu-uploader__preview-frame {
        flex-basis: 88px;
        width: 88px;
        height: 88px;
        padding: 6px;
    }

    .itu-uploader__preview {
        max-width: 76px;
        max-height: 76px;
    }

    .itu-uploader__format-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .itu-uploader__result-row {
        gap: 10px;
        align-items: stretch;
        flex-direction: column;
    }

    .itu-uploader__format-output {
        font-size: 16px;
    }

    .itu-uploader__copy-button {
        flex-basis: 48px;
        width: 100%;
        min-height: 48px;
        font-size: 15px;
    }

    .itu-uploader__result-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
