.tl-rng {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.tl-rng-mode-switch { display: flex; gap: 12px; flex-wrap: wrap; }

.tl-mode-option {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; padding: 10px 18px;
    border: 2px solid #e5e7eb; border-radius: 8px;
    font-weight: 600; font-size: 14px; color: #374151;
    transition: all 0.2s; user-select: none;
}
.tl-mode-option:has(input:checked) {
    border-color: var(--primary-color, #072d6e);
    background: #f0f4ff; color: var(--primary-color, #072d6e);
}
.tl-mode-option input { display: none; }

.tl-rng-range-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.tl-rng-arrow {
    font-size: 24px;
    color: #6b7280;
    padding-bottom: 6px;
    flex-shrink: 0;
}

.tl-option-group { flex: 1; min-width: 100px; }

.tl-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.tl-input, .tl-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.tl-input:focus, .tl-select:focus { border-color: var(--primary-color, #072d6e); }

.tl-checkbox-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: #374151; cursor: pointer; font-weight: 500;
}

.tl-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.tl-textarea:focus { border-color: var(--primary-color, #072d6e); }

/* Big result box */
.tl-rng-result-box {
    margin-top: 28px;
    min-height: 120px;
    background: linear-gradient(135deg, #072d6e 0%, #1a4db5 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.1s;
}
.tl-rng-result-box:active { transform: scale(0.98); }

.tl-rng-result-text {
    font-size: clamp(28px, 6vw, 64px);
    font-weight: 800;
    color: #fff;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

/* Generate button bounce animation */
@keyframes tl-bounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.06); }
    70%  { transform: scale(0.97); }
    100% { transform: scale(1); }
}
.tl-rng-btn.bounce { animation: tl-bounce 0.35s ease; }

.tl-tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.button {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s, background 0.2s;
}
.button-primary { background: var(--primary-color, #072d6e); color: #fff; }
.button-primary:hover { opacity: 0.88; }
.button-secondary { background: #f3f4f6; color: #111827; border: 1px solid #d1d5db; }
.button-secondary:hover { background: #e5e7eb; }
