.jb-cme {
    --jb-cme-border: #d8cfc7;
    --jb-cme-soft: #f5f0eb;
    --jb-cme-text: #333333;
    --jb-cme-accent: #7d5f4b;
    max-width: 900px;
    margin: 30px auto;
    color: var(--jb-cme-text);
    font-family: inherit;
    box-sizing: border-box;
}

.jb-cme *, .jb-cme *::before, .jb-cme *::after { box-sizing: border-box; }

.jb-cme__header { text-align: center; margin-bottom: 24px; }
.jb-cme__header h2 { margin: 0 0 8px; }
.jb-cme__header p { margin: 0; opacity: .8; }

.jb-cme__square {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--jb-cme-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.06);
}

.jb-cme__box {
    min-height: 235px;
    padding: 25px;
    border: 1px solid #e5ddd7;
    background: #fff;
}

.jb-cme__box h3 {
    margin: 0 0 18px;
    font-size: 17px;
    letter-spacing: .04em;
    text-transform: none;
}

.jb-cme__number {
    display: block;
    margin-bottom: 7px;
    font-size: 25px;
    color: var(--jb-cme-accent);
}

.jb-cme__label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.jb-cme__select,
.jb-cme__textarea {
    width: 100%;
    border: 1px solid #cfc7c0;
    border-radius: 7px;
    background: #fff;
    color: inherit;
    font: inherit;
}

.jb-cme__select { padding: 11px 12px; }
.jb-cme__textarea { min-height: 120px; padding: 12px; resize: vertical; }

.jb-cme__text { line-height: 1.6; margin-bottom: 0; }

.jb-cme__highlight {
    margin: 0;
    padding: 16px;
    border-radius: 8px;
    background: var(--jb-cme-soft);
    line-height: 1.6;
}

.jb-cme__result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    background: var(--jb-cme-soft);
    text-align: center;
}

.jb-cme__result p { margin: 8px 0 0; line-height: 1.6; }

.jb-cme__buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.jb-cme__buttons button {
    padding: 10px 20px;
    border: 1px solid #aaa;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.jb-cme__buttons button:hover { background: var(--jb-cme-soft); }

.jb-cme__note {
    margin: 18px 0 0;
    font-size: 12px;
    line-height: 1.5;
    opacity: .65;
    text-align: center;
}

@media (max-width: 650px) {
    .jb-cme__square { grid-template-columns: 1fr; }
    .jb-cme__box { min-height: auto; }
}

@media print {
    .jb-cme__buttons, .jb-cme__note { display: none !important; }
    .jb-cme { max-width: none; margin: 0; }
    .jb-cme__square { box-shadow: none; }
}
