.xct-widget {
    max-width: 560px;
    margin: 24px auto;
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffaf3 0%, #fff 100%);
    border: 1px solid #eaddc7;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.xct-title {
    margin: 0 0 6px;
    font-size: 22px;
    color: #7a3e1d;
    text-align: center;
}

.xct-desc {
    margin: 0 0 18px;
    text-align: center;
    color: #6b5b4d;
    font-size: 14px;
}

.xct-upload-box {
    position: relative;
    border: 2px dashed #d8b98a;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: border-color .2s;
}
.xct-upload-box:hover { border-color: #b8863f; }

.xct-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.xct-drop-hint span { font-size: 32px; display:block; margin-bottom: 6px; }
.xct-drop-hint p { margin: 0; color: #8a7361; font-size: 14px; }

.xct-preview img.xct-preview-img {
    max-width: 100%;
    max-height: 320px;
    border-radius: 10px;
    display: block;
    margin: 0 auto 10px;
}

.xct-remove-btn {
    background: none;
    border: 1px solid #d8b98a;
    color: #7a3e1d;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.xct-note {
    width: 100%;
    box-sizing: border-box;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid #e2d5c0;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    min-height: 54px;
    font-family: inherit;
}

.xct-submit-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #b8863f;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.xct-submit-btn:hover { background: #9c6f2f; }
.xct-submit-btn:disabled { background: #d8c3a0; cursor: not-allowed; }

.xct-loading {
    text-align: center;
    margin-top: 16px;
    color: #7a3e1d;
    font-size: 14px;
}

.xct-spinner {
    width: 28px;
    height: 28px;
    margin: 0 auto 8px;
    border: 3px solid #eadbc4;
    border-top-color: #b8863f;
    border-radius: 50%;
    animation: xct-spin 0.8s linear infinite;
}
@keyframes xct-spin { to { transform: rotate(360deg); } }

.xct-error {
    margin-top: 16px;
    padding: 12px 14px;
    background: #fdecea;
    color: #a3372f;
    border-radius: 10px;
    font-size: 14px;
}

.xct-result {
    margin-top: 20px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #eee0c9;
    border-radius: 12px;
    line-height: 1.7;
    color: #3a2c1e;
}
.xct-result h2, .xct-result h3, .xct-result h4 { color: #7a3e1d; margin-top: 18px; }
.xct-result h2:first-child, .xct-result h3:first-child, .xct-result h4:first-child { margin-top: 0; }
.xct-result ul { padding-left: 20px; }
