/*=====================================================
    DATAILEDVIEW UI RESET
======================================================*/

/* Box sizing */

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


/* Smooth scrolling */

html{

    scroll-behavior:smooth;

}


/* Body */

body{

    font-family:var(--font-family);

    background:var(--background);

    color:var(--text-primary);

    font-size:16px;

    line-height:1.6;

    overflow-x:hidden;

    text-rendering:optimizeLegibility;

    -webkit-font-smoothing:antialiased;

}


/* Images */

img,
picture{

    display:block;

    max-width:100%;

}


/* SVG */

svg{

    display:block;

}


/* Buttons */

button{
    color:inherit;

    background:none;

    border:none;

    outline:none;

    cursor:pointer;

    font:inherit;

}


/* Input */

input,
textarea,
select{

    color:inherit;
    font:inherit;

    outline:none;

    border:none;

    background:none;

}

:where(button, a, input, textarea, select, summary):focus-visible {
    outline: 2px solid var(--link-ink);
    outline-offset: 2px;
}

:is(#opt-linebreak, #opt-no-padding, #opt-live, #opt-prefix, #opt-upper, #opt-all-chars, #opt-ascii-only) {
    min-width: 24px;
    min-height: 24px;
}

:is(#key-toggle, .rt-flag-btn) {
    min-width: 24px;
    min-height: 24px;
}


/* Links */

a{

    text-decoration:none;

    color:inherit;

}


/* List */

ul,
ol{

    list-style:none;

}


/* Table */

table{

    border-collapse:collapse;

    border-spacing:0;

}


/* Heading */

h1,
h2,
h3,
h4,
h5,
h6{

    line-height:1.2;

    font-weight:700;

}


/* Paragraph */

p{

    color:var(--text-secondary);

}


/* Selection */

::selection{

    background:var(--primary);

    color:white;

}


/* Scrollbar */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#edf2f7;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:999px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--primary-dark);

}
