.auto-text-editor-card,
.auto-text-test-card,
.auto-text-registry-card { padding: 12px 14px; border: 1px solid #dbe2ec; border-radius: 8px; background: #fff; }
.auto-text-editor-card { border-color: #ef9dc7; background: #fff8fc; }
.auto-text-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.auto-text-section-heading > div { min-width: 0; flex: 1; }
.auto-text-section-heading h3,
.auto-text-section-heading p { margin: 0; }
.auto-text-section-heading h3 { color: #202635; font-size: 13px; font-weight: 700; line-height: 1.3; }
.auto-text-section-heading p { margin-top: 3px; color: #7c8798; font-size: 9px; line-height: 1.45; }
.auto-text-section-heading > span { color: #75839a; font-size: 8px; font-weight: 800; white-space: nowrap; }

.auto-text-editor-card .demo-field-label { margin: 0; color: #66758b; font-size: 9px; }
.auto-text-editor-card .demo-field-label + .demo-field-label { display: block; margin-top: 9px; }
.auto-text-editor-card .demo-text-input { margin-top: 4px; padding: 7px 9px; font-size: 10px; }
.auto-text-editor-card textarea.demo-text-input { min-height: 64px; resize: vertical; }
.auto-text-form-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }

.auto-text-equation { display: grid; grid-template-columns: auto auto auto 28px minmax(0, 1fr); align-items: center; gap: 7px; min-height: 65px; margin-bottom: 10px; padding: 10px; border: 1px solid #e1e7ef; border-radius: 6px; background: #f8fafc; }
.auto-text-equation > strong,
.auto-text-equation kbd { display: grid; min-height: 27px; place-items: center; padding: 5px 8px; border: 1px solid #d7e0ea; border-radius: 5px; background: #fff; color: #273d55; box-shadow: 0 2px 0 #d7e0ea; font: 800 9px/1.2 inherit; }
.auto-text-equation > strong { border-color: #ef83ba; color: #b40e6a; }
.auto-text-equation > span { color: #8390a2; font-size: 10px; font-weight: 700; }
.auto-text-equation > i { position: relative; border-top: 1px dashed #90a4ba; }
.auto-text-equation > i::after { position: absolute; top: -3px; right: -1px; width: 5px; height: 5px; border-top: 1px solid #90a4ba; border-right: 1px solid #90a4ba; content: ""; transform: rotate(45deg); }
.auto-text-equation p { min-width: 0; margin: 0; color: #2b3f56; font-size: 9px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }

.auto-text-last-result { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid #e1e7ef; border-radius: 6px; background: #fff; }
.auto-text-last-result > span { width: 10px; height: 10px; flex: 0 0 10px; border: 2px solid #b8c5d3; border-radius: 50%; }
.auto-text-last-result > div { display: grid; min-width: 0; gap: 2px; }
.auto-text-last-result strong { color: #2a3e55; font-size: 10px; }
.auto-text-last-result small { overflow: hidden; color: #7b889a; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.auto-text-last-result.has-result { border-color: #a9dec4; background: #f0fbf5; }
.auto-text-last-result.has-result > span { border-color: #42b883; background: #42b883; box-shadow: inset 0 0 0 2px #f0fbf5; }

.auto-text-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 7px; }
.auto-text-list > p { margin: 0; color: #7b889b; font-size: 9px; }
.auto-text-list-item { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: stretch; min-width: 0; overflow: hidden; border: 1px solid #e1e7ef; border-radius: 6px; background: #f9fbfd; }
.auto-text-list-item:hover,
.auto-text-list-item:focus-within,
.auto-text-list-item.is-active { border-color: #ec168c; background: #fff4fa; }
.auto-text-list-item__edit { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; padding: 7px 9px; border: 0; background: transparent; color: #18263a; text-align: left; }
.auto-text-list-item__edit kbd { display: grid; min-height: 27px; place-items: center; overflow: hidden; padding: 4px 6px; border: 1px solid #d9e2ec; border-radius: 5px; background: #fff; color: #b20e69; box-shadow: 0 2px 0 #d9e2ec; font: 800 8px/1.2 inherit; text-overflow: ellipsis; white-space: nowrap; }
.auto-text-list-item__edit > span { display: grid; min-width: 0; gap: 2px; }
.auto-text-list-item strong,
.auto-text-list-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auto-text-list-item strong { font-size: 10px; }
.auto-text-list-item small { color: #77859a; font-size: 8px; }
.auto-text-list-item__remove { border: 0; border-left: 1px solid #e1e7ef; background: transparent; color: #78869a; font-size: 17px; line-height: 1; }
.auto-text-list-item__remove:hover { background: #fde5f2; color: #b20e69; }
.auto-text-list-item__edit:focus-visible,
.auto-text-list-item__remove:focus-visible { outline: 2px solid #ec168c; outline-offset: -2px; }

@media (max-width: 620px) {
    .auto-text-equation { grid-template-columns: auto auto auto; }
    .auto-text-equation > i { display: none; }
    .auto-text-equation p { grid-column: 1 / -1; padding-top: 4px; border-top: 1px solid #e1e7ef; }
}
