:root {
    color-scheme: light;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    color: #212529;
}

.page-main,
.page-shell {
    flex: 1 0 auto;
    padding-top: 5.5rem;
    padding-bottom: 2rem;
}

.tool-icon {
    width: 3.5rem;
    height: 3.5rem;
}

.not-found-icon {
    width: 4rem;
    height: 4rem;
}

.tool-output-stage {
    border: 1px dashed #dee2e6;
    border-radius: .875rem;
    background: #f8f9fa;
    padding: .75rem;
}

.tool-note {
    display: none;
}

#jsonTransformMetaWrap,
#jsonFormatterMetaWrap,
#jsonParserMetaWrap {
    display: none !important;
}

.result-textarea {
    min-height: 15rem;
    resize: vertical;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: .9375rem;
    line-height: 1.6;
}

.tool-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.tool-action-row .btn {
    flex: 0 0 auto;
    min-width: 7rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.summary-chip {
    border: 1px solid #e9ecef;
    border-radius: .875rem;
    background: #fff;
    padding: .85rem .9rem;
}

.summary-chip-label {
    display: block;
    font-size: .75rem;
    color: #6c757d;
    margin-bottom: .35rem;
}

.summary-chip-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    word-break: break-word;
}

.card-foot-ad {
    background: #fff4e8;
    border-top: 1px solid #f2d3b2;
    color: #a35a16;
}

.card-foot-ad a {
    color: #c76b14;
    font-weight: 600;
}

.card-foot-ad a:hover {
    color: #a9570d;
}

@media (max-width: 767.98px) {
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .page-main,
    .page-shell {
        padding-top: 5rem;
        padding-bottom: 1.5rem;
    }

    .tool-action-row .btn {
        flex: 1 1 calc(50% - .375rem);
        min-width: 0;
    }

    .result-textarea {
        min-height: 13rem;
    }
}
