/* ============================================================
   Remove Duplicate Lines — tool-specific styles on base.css.
   No :root / theme; consumes base tokens only.
   ============================================================ */

.rdl-tool { background: var(--bg); transition: background 0.5s; }
.rdl-tool .tool-instructions-wrapper { text-align: center; margin-bottom: 24px; }
.rdl-tool .tool-section-title {
    font-family: var(--font-head); font-weight: 800;
    font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--text);
    margin: 0 0 12px; letter-spacing: -0.3px;
}
.rdl-tool .text-primary-red { color: var(--accent-2); }
.rdl-tool .tool-section-texte {
    color: var(--text-muted); font-size: 0.95rem; line-height: 1.7;
    max-width: 720px; margin: 0 auto;
}

/* Options */
.rdl-options {
    display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center;
    background: var(--panel-bg); border: 1px solid var(--panel-border);
    border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px;
}
.rdl-opt {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text); font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.rdl-opt input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--purple); cursor: pointer; }
.rdl-select {
    background: var(--card-bg); color: var(--text); border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm); padding: 6px 10px; font-family: var(--font-head);
    font-weight: 600; cursor: pointer;
}
.rdl-select:focus { outline: none; border-color: var(--accent); }

/* Two columns */
.rdl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 768px) { .rdl-grid { grid-template-columns: 1fr; } }
.rdl-col { display: flex; flex-direction: column; gap: 6px; }
.rdl-area {
    width: 100%; box-sizing: border-box; min-height: 300px; resize: vertical;
    background: var(--card-bg); color: var(--text);
    border: 1.5px solid var(--border-color); border-radius: var(--radius-sm);
    padding: 14px; font-family: var(--font-mono); font-size: 0.92rem; line-height: 1.6;
}
.rdl-area:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(231,76,60,0.15); }
.rdl-area[readonly] { background: var(--panel-bg); }

/* Action bar */
.rdl-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rdl-bar .spin-btn { margin: 0; }
.rdl-summary { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; margin-left: 4px; }

@media (max-width: 480px) {
    .rdl-options { gap: 8px 12px; }
    .rdl-summary { width: 100%; margin: 6px 0 0; }
}