/* Экран семантики SCADA (ТЗ №24). Оформление наследуется от экранов привязки
   телеметрии и идентичности: это соседний служебный экран, а не новая
   визуальная система. */

.tag-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 10px;
    background: var(--ground);
}

.tag-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-code {
    font-weight: 600;
    word-break: break-all;
}

.tag-facts {
    color: var(--muted);
    font-size: 0.85em;
}

.tag-state {
    margin-left: auto;
    font-size: 0.85em;
    padding: 1px 8px;
    border-radius: 10px;
    border: 1px dashed var(--line);
    white-space: nowrap;
}

.tag-state-confirmed {
    border-style: solid;
    border-color: var(--accent);
}

/* Чего не хватает до подтверждения — списком, а не одним «нельзя». */
.tag-missing {
    margin: 6px 0 0;
    font-size: 0.85em;
    color: var(--muted);
}

.semantics-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.semantics-form input {
    width: 100%;
}

.semantics-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

/* Измерение корреляции — то, что человек видит перед подтверждением. */
.correlation {
    margin: 6px 0 0;
    padding: 6px 10px;
    border-left: 3px solid var(--accent);
    font-size: 0.88em;
}

.correlation dl {
    margin: 4px 0 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 3px 10px;
}

.correlation dt {
    color: var(--muted);
}

.correlation dd {
    margin: 0;
}
