.kb-workspace { max-width: 1160px; margin: auto; }
.kb-workspace .action-body { padding: 1rem; }
.kb-workspace .upload-dropzone { margin: 0; padding: 1rem; gap: .4rem; }
.kb-workspace .upload-dropzone__icon { width: 44px; height: 44px; border-radius: 12px; }
.kb-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.kb-presets { display: flex; flex-wrap: wrap; gap: .5rem; }
.kb-presets .btn { min-height: 44px; }
.kb-preview { display: grid; place-items: center; min-height: 260px; padding: 1rem; background: #f3f5f7; border: 1px solid #dce2e6; border-radius: .75rem; }
.kb-preview img { max-width: 100%; max-height: 420px; object-fit: contain; background: white; box-shadow: 0 4px 20px #13243220; }
.kb-result-title { font-size: 1.3rem; font-weight: 700; }
.kb-checks { list-style: none; padding: 0; margin: 1rem 0; }
.kb-checks li { padding: .6rem 0; border-bottom: 1px solid #e1e6ea; }
.kb-readout { font-variant-numeric: tabular-nums; }
.kb-help { max-width: 980px; margin: auto; }
.kb-help p, .kb-help li { line-height: 1.65; }
.kb-help a { color: #14665d; }
#app h1 .format-pill { color: #14665d; }
@media (max-width: 575px) { .kb-preview { min-height: 180px; } }
.kb-workspace.kb-simple {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    max-width: 1040px;
}
.kb-simple .tool-panel { min-width: 0; min-height: 0; }
.kb-output {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: center;
    gap: clamp(.75rem, 2vw, 1.5rem);
    margin: 0;
}
.kb-output img, .kb-working-preview {
    display: block;
    width: 100%;
    height: auto;
    max-height: 14rem;
    object-fit: contain;
}
.kb-output .action-btn { max-width: 100%; white-space: normal; }
@media (min-width: 768px) {
    .kb-workspace.kb-simple { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); }
}

.kb-empty { display: grid; min-height: 5rem; height: 100%; margin: 0; place-items: center; text-align: center; color: var(--slate); }
.kb-sample { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.5rem; }
.kb-sample img { width: clamp(4rem, 12vw, 6rem); height: auto; }
.kb-sample .tool-sample__note { display: block; margin: 0 0 .5rem; }

.kb-size-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .6rem;
    border-radius: 1rem;
    background: #e5f2ec;
    color: #245c45;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.4;
}
