1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.depth-toggle {
position: relative;
display: inline-block;
width: 64px;
height: 34px;
cursor: pointer;
}
.depth-toggle__input {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
.depth-toggle__track {
position: absolute;
inset: 0;
border-radius: 999px;
background: #2b2b2b;
box-shadow:
inset 0 2px 4px rgba(0, 0, 0, 0.6),
inset 0 -1px 1px rgba(255, 255, 255, 0.05);
transition: background 0.35s ease;
}
.depth-toggle__knob {
position: absolute;
top: 3px;
left: 3px;
width: 28px;
height: 28px;
border-radius: 50%;
background: linear-gradient(145deg, #f5f5f5, #c9c9c9);
box-shadow:
0 3px 6px rgba(0, 0, 0, 0.5),
inset 0 -2px 3px rgba(0, 0, 0, 0.15),
inset 0 2px 2px rgba(255, 255, 255, 0.8);
transition: transform 0.35s cubic-bezier(0.6, -0.28, 0.4, 1.3), background 0.35s ease;
}
.depth-toggle__input:checked ~ .depth-toggle__track {
background: #16463b;
}
.depth-toggle__input:checked ~ .depth-toggle__track .depth-toggle__knob {
transform: translateX(30px);
background: linear-gradient(145deg, #4ee6c4, #17b892);
}
.depth-toggle__input:focus-visible ~ .depth-toggle__track {
outline: 2px solid #4ee6c4;
outline-offset: 2px;
}