.mtp-card {
    background: var(--bs-body-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s;
}

.mtp-card:hover {
    border-color: rgba(56, 189, 248, 0.2);
}

.mtp-card--expanded {
    border-color: rgba(56, 189, 248, 0.3);
}

.mtp-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.1s;
}

.mtp-card-head:hover {
    background: rgba(255, 255, 255, 0.02);
}

.mtp-tag-name {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.mtp-desc {
    font-size: 0.84rem;
    color: var(--bs-body-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mtp-unit {
    font-size: 0.7rem;
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--bs-secondary-bg);
    border: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
}

.mtp-meta {
    font-size: 0.68rem;
    color: var(--bs-secondary-color);
}

.mtp-value-block {
    flex-shrink: 0;
}

.mtp-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e2e8f0;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.mtp-value--empty {
    color: var(--bs-secondary-color);
    font-weight: 400;
}

.mtp-updated {
    font-size: 0.66rem;
    color: var(--bs-secondary-color);
    margin-top: 2px;
}

.mtp-card-actions {
    padding: 6px 14px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.mtp-input {
    width: 110px !important;
    font-size: 0.8rem !important;
}

.mtp-input-unit {
    font-size: 0.72rem;
    color: var(--bs-secondary-color);
    flex-shrink: 0;
}

.mtp-btn-save {
    padding: 2px 8px !important;
    font-size: 0.78rem !important;
}

.mtp-btn-icon {
    padding: 2px 6px !important;
    font-size: 0.8rem !important;
}

.mtp-sep {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 4px;
}

.mtp-history {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 14px 10px;
    background: rgba(0, 0, 0, 0.15);
}

.mtp-history-title {
    font-size: 0.72rem;
    color: var(--bs-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    margin-bottom: 6px;
}

.mtp-history-list {
    max-height: 180px;
    overflow-y: auto;
}

.mtp-history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.78rem;
}

.mtp-history-row:last-child {
    border-bottom: none;
}

.mtp-history-vals {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mtp-history-old {
    color: var(--bs-secondary-color);
    font-family: monospace;
}

.mtp-history-new {
    color: #e2e8f0;
    font-weight: 600;
    font-family: monospace;
}

.mtp-history-meta {
    font-size: 0.7rem;
    color: var(--bs-secondary-color);
}

.min-w-0 {
    min-width: 0;
}
