/* CTS-4 */
.cts[hidden], .cts__panel[hidden] { display: none; }
.cts__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 36px; margin: 0 0 6px 6px; padding: 4px 12px; vertical-align: top;
    border: 1px dashed var(--cts-border, #b9b9b9); border-radius: var(--cts-radius, 4px);
    background: #fff; color: inherit; font: inherit; font-size: 13px; line-height: 1.2; cursor: pointer;
}
.cts__toggle:hover { border-color: var(--cts-accent, #555); }
.cts__toggle--on { border-style: solid; border-color: var(--cts-accent, #333); box-shadow: inset 0 0 0 1px var(--cts-accent, #333); }
.cts { clear: both; margin: 4px 0 14px; font-size: 13.5px; line-height: 1.45; }
.cts__panel { padding: 10px 12px; max-width: 520px; background: var(--cts-bg, #f7f8f6); border: 1px solid var(--cts-line, #e3e6e0); border-radius: 6px; }
.cts__label { display: block; font-weight: 600; margin-bottom: 4px; }
.cts__row { display: flex; align-items: center; gap: 6px; }
.cts__input { width: 120px; height: 36px; padding: 0 8px; border: 1px solid #b9b9b9; border-radius: 4px; font: inherit; background: #fff; }
.cts__unit { color: #555; }
.cts__msg { min-height: 1.45em; margin: 4px 0; color: #2f5d2f; }
.cts__msg--err { color: #b3261e; }
/* CTS-16 */
.cts__cost[hidden] { display: none; }
.cts__cost { margin: 0 0 6px; font-weight: 600; }
.cts__info { display: flex; align-items: flex-start; gap: 6px; color: #555; font-size: 12.5px; }
/* CTS-12 */
.cts__i {
    flex: 0 0 20px; width: 20px; height: 20px; padding: 0; border-radius: 50%;
    border: 1px solid #888; background: #fff; color: #444; font: 600 12px/18px Georgia, serif; cursor: pointer;
}
.cts__dialog { max-width: 560px; width: calc(100% - 32px); padding: 0; border: 0; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); color: #333; }
.cts__dialog:not([open]) { display: none; }
.cts__dialog::backdrop { background: rgba(0, 0, 0, .45); }
.cts__dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #eee; }
.cts__dialog-title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.cts__close { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #555; padding: 0 4px; }
.cts__dialog-body { padding: 12px 18px 16px; font-size: 14px; line-height: 1.55; max-height: 70vh; overflow: auto; }
.cts__dialog-body p { margin: 0 0 10px; }
@media (max-width: 767px) { .cts__panel { max-width: none; } }
