#tih-dlr {
    --dlr-primary: #4f46e5;
    --dlr-border: #e2e8f0;
    --dlr-text: #172033;

    max-width: 1000px;
    margin: 24px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--dlr-border);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(30,41,59,.07);
    color: var(--dlr-text);
    font-family: inherit;
}

#tih-dlr * {
    box-sizing: border-box;
}

#tih-dlr .dlr-heading {
    text-align: center;
    margin-bottom: 28px;
}

#tih-dlr .dlr-badge {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 30px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

#tih-dlr h2 {
    margin: 14px 0 8px;
    font-size: clamp(25px,4vw,36px);
    font-weight: 800;
    line-height: 1.25;
}

#tih-dlr p {
    color: #64748b;
    line-height: 1.7;
}

#tih-dlr label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 9px;
}

#tih-dlr textarea {
    display: block;
    width: 100%;
    min-height: 190px;
    padding: 17px;
    border: 1px solid var(--dlr-border);
    border-radius: 13px;
    background: #f8fafc;
    color: var(--dlr-text);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

#tih-dlr textarea:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px #6366f115;
}

#tih-dlr .dlr-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 18px 0;
}

#tih-dlr .dlr-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

#tih-dlr input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #4f46e5;
}

#tih-dlr .dlr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

#tih-dlr button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 43px;
    padding: 11px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

#tih-dlr button.dlr-primary {
    background: linear-gradient(135deg,#2563eb,#7c3aed);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 5px 18px #6366f130;
}

#tih-dlr button:hover {
    transform: translateY(-2px);
}

#tih-dlr button:active {
    transform: translateY(0);
}

#tih-dlr button:focus-visible {
    outline: 3px solid #818cf8;
    outline-offset: 3px;
}

#tih-dlr .dlr-stats {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    margin: 25px 0;
}

#tih-dlr .dlr-stats > div {
    padding: 20px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8faff;
    text-align: center;
}

#tih-dlr .dlr-stats span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

#tih-dlr .dlr-stats strong {
    display: block;
    margin-top: 8px;
    color: #4f46e5;
    font-size: 28px;
    font-weight: 800;
}

#tih-dlr #dlr-status {
    min-height: 24px;
    color: #15803d;
    font-size: 14px;
    font-weight: 600;
}

#tih-dlr .dlr-privacy {
    margin-bottom: 0;
    text-align: center;
    font-size: 12px;
}

@media (max-width: 600px) {
    #tih-dlr {
        padding: 18px;
        border-radius: 16px;
    }

    #tih-dlr textarea {
        min-height: 160px;
    }

    #tih-dlr .dlr-actions button {
        flex: 1 1 auto;
    }

    #tih-dlr .dlr-stats {
        gap: 6px;
    }

    #tih-dlr .dlr-stats span {
        font-size: 10px;
    }

    #tih-dlr .dlr-stats strong {
        font-size: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #tih-dlr * {
        transition: none !important;
    }
}
/* ToolInHand - Scoped Layout Fix */

#tih-dlr {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

#tih-dlr .dlr-heading {
    display: none;
}