.ts-rules-page {
    overflow: hidden;
}

.ts-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ts-rule-card {
    position: relative;
    display: flex;
    gap: 14px;
    min-height: 128px;
    padding: 18px 18px 18px 16px;
    border-radius: 12px;
    border-left: 4px solid var(--rule-color);
    background: rgba(255,255,255,.72);
    box-shadow: 0 8px 22px rgba(0,0,0,.07);
}

.ts-rule-card.is-highlight {
    border: 1px solid var(--rule-color);
    border-left-width: 4px;
    background: rgba(255, 250, 220, .72);
}

.ts-rule-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rule-color);
    color: #fff;
    font-size: 17px;
}

.ts-rule-content {
    flex: 1;
    min-width: 0;
}

.ts-rule-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.ts-rule-title-row h3 {
    margin: 2px 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.ts-rule-text {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

.ts-rule-badge {
    flex: 0 0 auto;
    padding: 3px 9px;
    border-radius: 7px;
    background: #ffc400;
    color: #222;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 7px rgba(0,0,0,.12);
}

@media (max-width: 900px) {
    .ts-rules-grid {
        grid-template-columns: 1fr;
    }
}