.xssc-widget {
    margin: 1rem 0;
    padding: 16px 18px;
    border: 1px dashed #c5d3e0;
    border-radius: 8px;
    background: #fafbfc;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    float: none !important;
    clear: both;
}
#comments .xssc-widget,
.respond .xssc-widget {
    display: block;
    max-width: 100%;
}
.xssc-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    width: 100%;
}
.xssc-image-wrap {
    cursor: pointer;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f3f6f9;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}
.xssc-image-wrap img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 120px;
    margin: 0 auto;
    border-radius: 6px;
    border: 1px solid #dde4ea;
}
.xssc-boxes {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f3f6f9;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}
.xssc-widget .xssc-boxes input[type="text"] {
    box-sizing: border-box;
    width: 3.2rem !important;
    min-width: 3.2rem;
    max-width: 3.2rem !important;
    height: 3.2rem !important;
    padding: 0 !important;
    margin: 0;
    text-align: center;
    border: 2px solid rgba(0, 0, 0, 0.18) !important;
    font-size: 1.35rem;
    font-weight: 600;
    color: #222 !important;
    line-height: 3.2rem;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 0 auto;
    -webkit-appearance: none;
    appearance: none;
}
.xssc-hint {
    width: 100%;
    margin: 12px 0 0;
    font-size: 1.25rem;
    line-height: 1.7;
    color: #222;
}
.xssc-hint.xssc-error {
    color: #c0392b;
}
.xssc-tools {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
}
.xssc-refresh,
.xssc-speak {
    font-size: 1.15rem;
    color: #2980b9;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.xssc-status {
    font-size: 1.25rem;
    font-weight: bold;
}
.xssc-status.ok { color: #27ae60; }
.xssc-status.fail { color: #c0392b; }

@media (min-width: 900px) {
    .xssc-row {
        flex-direction: row;
        align-items: stretch;
        gap: 20px;
    }
    .xssc-image-wrap {
        flex: 1 1 auto;
        width: auto;
    }
    .xssc-boxes {
        flex: 0 0 auto;
        width: auto;
        min-width: 240px;
        flex-wrap: nowrap;
    }
}
