@gecko-ui-kit/components 0.0.0-stage → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +712 -2
- package/index.js +198 -0
- package/package.json +42 -4
- package/src/accordion.js +208 -0
- package/src/alert.js +205 -0
- package/src/authform.js +285 -0
- package/src/breadcrumbs.js +204 -0
- package/src/calendar.js +523 -0
- package/src/carousel.js +266 -0
- package/src/combobox.js +421 -0
- package/src/daterange.js +311 -0
- package/src/donut.js +346 -0
- package/src/filedrop.js +378 -0
- package/src/gauge.js +169 -0
- package/src/grid.js +298 -0
- package/src/heatmap.js +332 -0
- package/src/kanban.js +319 -0
- package/src/leaderboard.js +201 -0
- package/src/linechart.js +550 -0
- package/src/multiselect.js +324 -0
- package/src/notifications.js +393 -0
- package/src/otp.js +112 -0
- package/src/pagination.js +242 -0
- package/src/password.js +245 -0
- package/src/rangeslider.js +266 -0
- package/src/rating.js +171 -0
- package/src/signature.js +213 -0
- package/src/skeleton.js +254 -0
- package/src/spinner.js +38 -0
- package/src/stepper.js +211 -0
- package/src/swipe.js +280 -0
- package/src/tagsinput.js +369 -0
- package/src/timeline.js +340 -0
- package/src/timepicker.js +290 -0
- package/src/tree.js +490 -0
- package/src/upload.js +416 -0
- package/src/virtuallist.js +373 -0
- package/src/wizard.js +392 -0
- package/style.css +1761 -0
package/style.css
ADDED
|
@@ -0,0 +1,1761 @@
|
|
|
1
|
+
/* @gecko-ui-kit/components/style.css — needs @gecko-ui-kit/tokens */
|
|
2
|
+
|
|
3
|
+
/* ---------------- buttons ---------------- */
|
|
4
|
+
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 12px; font-weight: 650; font-size: 13.5px; background: var(--card); border: 1px solid var(--line-2); color: var(--ink); white-space: nowrap; transition: background .2s, border-color .2s, box-shadow .2s; }
|
|
5
|
+
.btn:hover { background: var(--card-2); }
|
|
6
|
+
.btn svg { width: 16px; height: 16px; }
|
|
7
|
+
.btn--primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: 0 6px 16px -8px var(--accent); }
|
|
8
|
+
.btn--primary:hover { background: var(--accent-2); }
|
|
9
|
+
.btn--dark { background: var(--ink); color: var(--bg); border-color: transparent; }
|
|
10
|
+
.btn--dark:hover { background: var(--ink-2); }
|
|
11
|
+
.btn--ghost { background: transparent; border-color: transparent; }
|
|
12
|
+
.btn--ghost:hover { background: var(--card-2); }
|
|
13
|
+
.btn--danger { background: var(--bad); border-color: transparent; color: #fff; }
|
|
14
|
+
.btn--danger:hover, .btn--ghost.btn--danger:hover { background: color-mix(in srgb, var(--bad) 86%, #000); color: #fff; }
|
|
15
|
+
.btn--sm { height: 32px; padding: 0 11px; border-radius: 10px; font-size: 12.5px; }
|
|
16
|
+
.btn--lg { height: 46px; padding: 0 20px; border-radius: 14px; font-size: 15px; }
|
|
17
|
+
.btn--block { width: 100%; }
|
|
18
|
+
.btn:disabled { opacity: .5; pointer-events: none; }
|
|
19
|
+
.iconbtn { position: relative; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-1); transition: background .2s; flex: none; }
|
|
20
|
+
.iconbtn:hover { background: var(--card-2); }
|
|
21
|
+
.iconbtn--sm { width: 34px; height: 34px; border-radius: 10px; box-shadow: none; }
|
|
22
|
+
.iconbtn--sm svg { width: 16px; height: 16px; }
|
|
23
|
+
.link { color: var(--accent); font-weight: 650; font-size: 12.5px; }
|
|
24
|
+
|
|
25
|
+
/* ---------------- inputs ---------------- */
|
|
26
|
+
.input { width: 100%; height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; outline: none; transition: border-color .2s, box-shadow .2s; }
|
|
27
|
+
/* small size */
|
|
28
|
+
.input--sm { height: 34px; border-radius: 10px; font-size: 13px; }
|
|
29
|
+
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
|
|
30
|
+
/* native <select> fallback (before @gecko-ui-kit/overlays upgrades it into a dropdown) */
|
|
31
|
+
select.input { -webkit-appearance: none; appearance: none; padding-right: 36px; cursor: pointer; background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
|
|
32
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b90a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E"); }
|
|
33
|
+
.input:hover:not(:focus):not(:disabled) { border-color: color-mix(in srgb, var(--accent) 30%, var(--line-2)); }
|
|
34
|
+
|
|
35
|
+
/* slider */
|
|
36
|
+
.range { --p: 50%; -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; }
|
|
37
|
+
.range:focus { outline: none; }
|
|
38
|
+
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--accent) 0 var(--p), var(--bg-2) var(--p) 100%); box-shadow: inset 0 0 0 1px var(--line); }
|
|
39
|
+
.range::-moz-range-track { height: 6px; border-radius: 99px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
|
|
40
|
+
.range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--accent); }
|
|
41
|
+
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(15, 18, 30, .08), 0 2px 6px rgba(15, 18, 30, .28), 0 0 0 0 var(--accent-soft); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s; }
|
|
42
|
+
.range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(15, 18, 30, .08), 0 2px 6px rgba(15, 18, 30, .28), 0 0 0 0 var(--accent-soft); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s; }
|
|
43
|
+
.range:hover::-webkit-slider-thumb { transform: scale(1.12); }
|
|
44
|
+
.range:hover::-moz-range-thumb { transform: scale(1.12); }
|
|
45
|
+
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px rgba(15, 18, 30, .08), 0 2px 6px rgba(15, 18, 30, .28), 0 0 0 5px var(--accent-soft); }
|
|
46
|
+
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px rgba(15, 18, 30, .08), 0 2px 6px rgba(15, 18, 30, .28), 0 0 0 5px var(--accent-soft); }
|
|
47
|
+
.range:active::-webkit-slider-thumb { transform: scale(1.28); box-shadow: 0 0 0 1px rgba(15, 18, 30, .08), 0 3px 10px rgba(15, 18, 30, .3), 0 0 0 7px var(--accent-soft); }
|
|
48
|
+
.range:active::-moz-range-thumb { transform: scale(1.28); box-shadow: 0 0 0 1px rgba(15, 18, 30, .08), 0 3px 10px rgba(15, 18, 30, .3), 0 0 0 7px var(--accent-soft); }
|
|
49
|
+
.range:disabled { opacity: .5; cursor: not-allowed; }
|
|
50
|
+
|
|
51
|
+
/* colour swatch */
|
|
52
|
+
.swatch { -webkit-appearance: none; appearance: none; flex: none; width: 30px; height: 30px; padding: 3px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--card); cursor: pointer; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s, border-color .2s; }
|
|
53
|
+
.swatch::-webkit-color-swatch-wrapper { padding: 0; }
|
|
54
|
+
.swatch::-webkit-color-swatch { border: 0; border-radius: 50%; }
|
|
55
|
+
.swatch::-moz-color-swatch { border: 0; border-radius: 50%; }
|
|
56
|
+
.swatch:hover { transform: scale(1.1); border-color: var(--faint); }
|
|
57
|
+
.swatch:active { transform: scale(.92); }
|
|
58
|
+
.swatch:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); }
|
|
59
|
+
@media (prefers-reduced-motion: reduce) { .range::-webkit-slider-thumb, .range::-moz-range-thumb, .swatch { transition: none; } }
|
|
60
|
+
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
|
|
61
|
+
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
|
|
62
|
+
.field__hint { font-weight: 500; color: var(--faint); }
|
|
63
|
+
.field.is-bad .input { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
|
|
64
|
+
.field.is-bad .field__hint { color: var(--bad); }
|
|
65
|
+
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
|
|
66
|
+
.searchbox { position: relative; display: block; flex: 1; max-width: 320px; }
|
|
67
|
+
.searchbox svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 16px; }
|
|
68
|
+
.searchbox .input { padding-left: 36px; }
|
|
69
|
+
|
|
70
|
+
/* ---------------- tabs ---------------- */
|
|
71
|
+
.tabs { position: relative; display: flex; gap: 4px; box-shadow: inset 0 -1px 0 var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
|
|
72
|
+
.tabs > a, .tabs > button { position: relative; display: flex; align-items: center; gap: 7px; padding: 10px 14px 12px; color: var(--muted); font-weight: 600; white-space: nowrap; transition: color .25s; }
|
|
73
|
+
.tabs > a:hover, .tabs > button:hover, .tabs [aria-current="page"], .tabs [aria-selected="true"] { color: var(--ink); }
|
|
74
|
+
.tabs__line { position: absolute; left: 0; bottom: 0; height: 2.5px; width: 100%; background: var(--accent); border-radius: 2px; opacity: 0; pointer-events: none; }
|
|
75
|
+
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--bg-2); color: var(--ink-2); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
|
|
76
|
+
.badge--accent { background: var(--accent); color: var(--accent-ink); }
|
|
77
|
+
|
|
78
|
+
/* ---------------- cards + layout helpers ---------------- */
|
|
79
|
+
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 18px; min-width: 0; }
|
|
80
|
+
.card--flush { padding: 0; overflow: hidden; }
|
|
81
|
+
.card--flush > .chead { padding: 18px 18px 12px; }
|
|
82
|
+
.chead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
|
|
83
|
+
.chead h2 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
|
|
84
|
+
.chead p { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
|
|
85
|
+
.chead__right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
|
|
86
|
+
.grid { display: grid; gap: var(--gap); }
|
|
87
|
+
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
88
|
+
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
89
|
+
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
90
|
+
.stack { display: flex; flex-direction: column; gap: var(--gap); }
|
|
91
|
+
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
92
|
+
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
|
|
93
|
+
.kpis--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
94
|
+
.kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
95
|
+
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-1); min-width: 0; }
|
|
96
|
+
.kpi small { color: var(--muted); font-size: 12px; font-weight: 600; }
|
|
97
|
+
.kpi b { font-size: 26px; letter-spacing: -.03em; font-weight: 750; font-variant-numeric: tabular-nums; }
|
|
98
|
+
.kpi__sub { font-size: 12px; color: var(--muted); }
|
|
99
|
+
.kpi--accent { background: var(--accent-soft); border-color: var(--accent-line); }
|
|
100
|
+
.kpi--good b { color: var(--good); }
|
|
101
|
+
.kpi--bad b { color: var(--bad); }
|
|
102
|
+
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
|
|
103
|
+
|
|
104
|
+
/* ---------------- chips ---------------- */
|
|
105
|
+
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
|
|
106
|
+
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 12.5px; color: var(--ink-2); transition: background .2s, color .2s, border-color .2s; }
|
|
107
|
+
.chip:hover { border-color: var(--line-2); }
|
|
108
|
+
.chip svg { width: 15px; height: 15px; }
|
|
109
|
+
.chip[aria-pressed="true"] { background: var(--ink); color: var(--card); border-color: var(--ink); }
|
|
110
|
+
|
|
111
|
+
/* ---------------- table ---------------- */
|
|
112
|
+
.table-wrap { overflow-x: auto; }
|
|
113
|
+
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
|
|
114
|
+
.table th { text-align: left; font-size: 12px; font-weight: 650; color: var(--muted); padding: 10px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--card); }
|
|
115
|
+
.table td { padding: 11px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
|
|
116
|
+
.table tbody tr { transition: background .2s; }
|
|
117
|
+
.table tbody tr:hover { background: var(--card-2); }
|
|
118
|
+
.table tbody tr:last-child td { border-bottom: 0; }
|
|
119
|
+
.table .r { text-align: right; }
|
|
120
|
+
|
|
121
|
+
/* ---------------- avatar, cell, tag ---------------- */
|
|
122
|
+
.cell { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
|
|
123
|
+
.cell__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
|
|
124
|
+
.cell__text b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
125
|
+
.cell__text small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
126
|
+
.av { position: relative; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 750; flex: none; color: var(--c, var(--accent)); background: color-mix(in oklab, var(--c, var(--accent)) 16%, var(--card)); }
|
|
127
|
+
.av--sm { width: 26px; height: 26px; font-size: 9.5px; }
|
|
128
|
+
.av--lg { width: 56px; height: 56px; font-size: 17px; }
|
|
129
|
+
.av--indigo { --c: var(--hue-indigo); } .av--teal { --c: var(--hue-teal); } .av--rose { --c: var(--hue-rose); } .av--amber { --c: var(--hue-amber); }
|
|
130
|
+
.av--violet { --c: var(--hue-violet); } .av--green { --c: var(--hue-green); } .av--slate { --c: var(--hue-slate); } .av--sky { --c: var(--hue-sky); }
|
|
131
|
+
.av--open { border: 1.5px dashed var(--line-2); background: transparent; color: var(--muted); }
|
|
132
|
+
.av--open svg { width: 14px; }
|
|
133
|
+
.av--more { background: var(--bg-2); color: var(--muted); }
|
|
134
|
+
.av__on { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--good); border: 2px solid var(--card); }
|
|
135
|
+
.avs { display: inline-flex; }
|
|
136
|
+
.avs .av { border: 2px solid var(--card); margin-left: -7px; }
|
|
137
|
+
.avs .av:first-child { margin-left: 0; }
|
|
138
|
+
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 11.5px; font-weight: 650; white-space: nowrap; background: var(--bg-2); color: var(--ink-2); }
|
|
139
|
+
.tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
|
|
140
|
+
.tag svg { width: 13px; height: 13px; }
|
|
141
|
+
.tag--good { background: var(--good-soft); color: var(--good); } .tag--warn { background: var(--warn-soft); color: var(--warn); }
|
|
142
|
+
.tag--bad { background: var(--bad-soft); color: var(--bad); } .tag--accent { background: var(--accent-soft); color: var(--accent); }
|
|
143
|
+
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
|
|
144
|
+
.tone--good { color: var(--good); background: var(--good-soft); } .tone--warn { color: var(--warn); background: var(--warn-soft); }
|
|
145
|
+
.tone--bad { color: var(--bad); background: var(--bad-soft); } .tone--plain { color: var(--ink-2); background: var(--bg-2); } .tone--accent { color: var(--accent); background: var(--accent-soft); }
|
|
146
|
+
|
|
147
|
+
/* ---------------- segmented (stretchy thumb) ---------------- */
|
|
148
|
+
.seg { position: relative; display: inline-flex; padding: 3px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); }
|
|
149
|
+
.seg__thumb { position: absolute; inset: 0; background: var(--card); box-shadow: var(--shadow-1); opacity: 0; pointer-events: none; }
|
|
150
|
+
[data-theme="dark"] .seg__thumb { background: var(--line-2); }
|
|
151
|
+
.seg button { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border-radius: 99px; font-size: 12.5px; font-weight: 650; color: var(--muted); transition: color .25s; white-space: nowrap; }
|
|
152
|
+
.seg button svg { width: 15px; height: 15px; }
|
|
153
|
+
.seg button[aria-pressed="true"] { color: var(--ink); }
|
|
154
|
+
.seg--lg button { height: 38px; padding: 0 18px; font-size: 13.5px; }
|
|
155
|
+
|
|
156
|
+
/* ---------------- switch + checkbox ---------------- */
|
|
157
|
+
.switch { position: relative; width: 42px; height: 24px; border-radius: 99px; background: var(--line-2); transition: background .3s var(--ease); flex: none; }
|
|
158
|
+
.switch i { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
|
|
159
|
+
.switch[aria-checked="true"] { background: var(--accent); }
|
|
160
|
+
.check { width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; background: var(--card); transition: background .2s, border-color .2s, color .2s; flex: none; }
|
|
161
|
+
.check svg { width: 15px; height: 15px; stroke-width: 2.6; }
|
|
162
|
+
.check[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
|
|
163
|
+
|
|
164
|
+
/* ---------------- meter / ring / steps ---------------- */
|
|
165
|
+
.meter { position: relative; display: block; height: 7px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
|
|
166
|
+
.meter i { position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform-origin: 0 50%; }
|
|
167
|
+
.meter.is-good i { background: var(--good); } .meter.is-warn i { background: var(--warn); } .meter.is-bad i { background: var(--bad); }
|
|
168
|
+
.ring { position: relative; display: inline-grid; place-items: center; flex: none; }
|
|
169
|
+
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
|
|
170
|
+
.ring circle { fill: none; }
|
|
171
|
+
.ring__bg { stroke: var(--bg-2); }
|
|
172
|
+
.ring__fg { stroke: var(--accent); stroke-linecap: round; }
|
|
173
|
+
.ring b { position: relative; font-size: 15px; font-weight: 750; letter-spacing: -.02em; }
|
|
174
|
+
.steps { display: flex; list-style: none; margin: 0; padding: 0; }
|
|
175
|
+
.steps li { position: relative; flex: 1; display: flex; flex-direction: column; gap: 8px; }
|
|
176
|
+
.steps li:last-child { flex: none; }
|
|
177
|
+
.steps__dot { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--line-2); color: var(--accent-ink); }
|
|
178
|
+
.steps__dot svg { width: 14px; height: 14px; stroke-width: 2.6; opacity: 0; }
|
|
179
|
+
.steps li.is-done .steps__dot { background: var(--accent); border-color: var(--accent); }
|
|
180
|
+
.steps li.is-done .steps__dot svg { opacity: 1; }
|
|
181
|
+
.steps li.is-now .steps__dot { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
|
|
182
|
+
.steps__bar { position: absolute; left: 30px; right: 4px; top: 12px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
|
|
183
|
+
.steps__fill { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; }
|
|
184
|
+
.steps small { font-size: 12px; color: var(--muted); font-weight: 600; }
|
|
185
|
+
.steps li.is-now small { color: var(--ink); }
|
|
186
|
+
|
|
187
|
+
/* ---------------- empty state ---------------- */
|
|
188
|
+
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 32px 16px; color: var(--muted); }
|
|
189
|
+
.empty__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2); margin-bottom: 4px; }
|
|
190
|
+
.empty b { color: var(--ink); }
|
|
191
|
+
.empty .btn { margin-top: 8px; }
|
|
192
|
+
|
|
193
|
+
@media (max-width: 760px) {
|
|
194
|
+
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
|
|
195
|
+
.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* ---------------- data grid (grid()) ---------------- */
|
|
199
|
+
.gd { display: flex; flex-direction: column; min-width: 0; }
|
|
200
|
+
.gd__bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
|
|
201
|
+
.gd__search { min-width: 180px; }
|
|
202
|
+
.gd__grow { flex: 1; }
|
|
203
|
+
.gd__bar .dd, .gd__filter { width: auto; min-width: 150px; }
|
|
204
|
+
.gd__sel { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--accent-soft); border-bottom: 1px solid var(--accent-line); font-size: 13px; font-weight: 650; color: var(--ink); }
|
|
205
|
+
.gd__sel[hidden] { display: none; }
|
|
206
|
+
.gd__clearsel { margin-left: auto; font-size: 12.5px; font-weight: 650; color: var(--accent); padding: 4px 6px; border-radius: 8px; }
|
|
207
|
+
.gd__clearsel:hover { background: var(--card); }
|
|
208
|
+
.gd__table td { white-space: nowrap; }
|
|
209
|
+
.gd__table td.gd__wrap { white-space: normal; min-width: 9em; }
|
|
210
|
+
.gd__table th { position: sticky; top: 0; z-index: 1; }
|
|
211
|
+
.gd__sort { display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; padding: 2px 4px; margin: -2px -4px; border-radius: 6px; transition: color .2s, background .2s; }
|
|
212
|
+
.gd__sort:hover { color: var(--ink); background: var(--card-2); }
|
|
213
|
+
.gd__arrow { display: inline-grid; opacity: 0; transition: opacity .2s, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
|
|
214
|
+
.gd__arrow svg { width: 13px; height: 13px; }
|
|
215
|
+
.gd__sort:hover .gd__arrow { opacity: .45; }
|
|
216
|
+
th[aria-sort="ascending"] .gd__sort, th[aria-sort="descending"] .gd__sort { color: var(--ink); }
|
|
217
|
+
th[aria-sort="ascending"] .gd__arrow { opacity: 1; transform: rotate(180deg); }
|
|
218
|
+
th[aria-sort="descending"] .gd__arrow { opacity: 1; transform: rotate(0deg); }
|
|
219
|
+
th.r .gd__sort { flex-direction: row-reverse; }
|
|
220
|
+
.gd__ck { width: 44px; padding-right: 0 !important; }
|
|
221
|
+
.gd__ck .check { width: 20px; height: 20px; border-radius: 6px; }
|
|
222
|
+
.gd__ck .check svg { width: 13px; height: 13px; }
|
|
223
|
+
.check[aria-checked="mixed"] { background: var(--accent); border-color: var(--accent); color: transparent; position: relative; }
|
|
224
|
+
.check[aria-checked="mixed"]::after { content: ""; position: absolute; width: 9px; height: 2px; border-radius: 2px; background: var(--accent-ink); }
|
|
225
|
+
.check:disabled { opacity: .55; cursor: default; }
|
|
226
|
+
.gd__act { width: 52px; text-align: right; }
|
|
227
|
+
.gd__rm { color: var(--faint); opacity: 0; transition: opacity .2s, color .2s, background .2s; }
|
|
228
|
+
.gd tr:hover .gd__rm, .gd__rm:focus-visible { opacity: 1; }
|
|
229
|
+
.gd__rm:hover { color: var(--bad); background: var(--bad-soft); }
|
|
230
|
+
.gd tbody tr.is-sel { background: color-mix(in srgb, var(--accent-soft) 70%, transparent); }
|
|
231
|
+
.gd tbody tr.is-new { animation: gd-new 1.4s var(--ease); }
|
|
232
|
+
@keyframes gd-new { from { background: var(--accent-soft); } }
|
|
233
|
+
/* editable cells */
|
|
234
|
+
.gd__ed { position: relative; cursor: text; outline: none; }
|
|
235
|
+
.gd__ed::after { content: ""; position: absolute; inset: 3px 6px; border-radius: 9px; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background .2s; pointer-events: none; }
|
|
236
|
+
.gd__ed:hover::after { box-shadow: inset 0 0 0 1px var(--line-2); }
|
|
237
|
+
.gd__ed:focus-visible::after { box-shadow: inset 0 0 0 2px var(--accent); background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
|
|
238
|
+
.gd__ed.is-saved::after { animation: gd-saved .9s var(--ease); }
|
|
239
|
+
@keyframes gd-saved { from { background: var(--good-soft); box-shadow: inset 0 0 0 1px var(--good); } }
|
|
240
|
+
.gd__ed.is-editing { padding-top: 5px; padding-bottom: 5px; }
|
|
241
|
+
.gd__ed.is-editing::after { display: none; }
|
|
242
|
+
.gd__input { min-width: 90px; height: 32px; padding: 0 10px; margin: 0 -11px; width: calc(100% + 22px); }
|
|
243
|
+
.gd__ed.r .gd__input { text-align: right; }
|
|
244
|
+
.gd__ed.is-bad .gd__input { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
|
|
245
|
+
.gd__blank { color: var(--faint); }
|
|
246
|
+
.gd__none td { padding: 0; }
|
|
247
|
+
.gd__none:hover { background: none !important; }
|
|
248
|
+
/* footer + pager */
|
|
249
|
+
.gd__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
|
|
250
|
+
.gd__count b { color: var(--ink); font-weight: 700; }
|
|
251
|
+
.gd__muted { color: var(--faint); }
|
|
252
|
+
.gd__pager { display: flex; align-items: center; gap: 2px; }
|
|
253
|
+
.gd__pager .iconbtn { width: 30px; height: 30px; }
|
|
254
|
+
.gd__pager .iconbtn:disabled { opacity: .35; pointer-events: none; }
|
|
255
|
+
.gd__pg { min-width: 30px; height: 30px; padding: 0 6px; border-radius: 9px; font-weight: 650; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: background .2s, color .2s, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
|
|
256
|
+
.gd__pg:hover { background: var(--card-2); }
|
|
257
|
+
.gd__pg:active { transform: scale(.92); }
|
|
258
|
+
.gd__pg[aria-current="page"] { background: var(--ink); color: var(--card); }
|
|
259
|
+
.gd__gap { padding: 0 4px; color: var(--faint); }
|
|
260
|
+
/* density + stripes */
|
|
261
|
+
.gd--compact .table td { padding-top: 7px; padding-bottom: 7px; }
|
|
262
|
+
.gd--compact .table th { padding-top: 8px; padding-bottom: 8px; }
|
|
263
|
+
.gd--compact .gd__ed.is-editing { padding-top: 2px; padding-bottom: 2px; }
|
|
264
|
+
.gd--stripes tbody tr:nth-child(even) { background: var(--card-2); }
|
|
265
|
+
.gd .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
266
|
+
@media (max-width: 640px) {
|
|
267
|
+
.gd__bar { padding: 12px; }
|
|
268
|
+
.gd__search { max-width: none; flex-basis: 100%; }
|
|
269
|
+
.gd__grow { display: none; }
|
|
270
|
+
.gd__bar .dd, .gd__filter { flex: 1; min-width: 0; }
|
|
271
|
+
.gd__foot { padding: 10px 12px; }
|
|
272
|
+
.gd__rm { opacity: 1; }
|
|
273
|
+
}
|
|
274
|
+
@media (prefers-reduced-motion: reduce) {
|
|
275
|
+
.gd tbody tr.is-new, .gd__ed.is-saved::after { animation: none; }
|
|
276
|
+
}
|
|
277
|
+
.gd__err { position: absolute; left: 6px; top: calc(100% - 4px); z-index: 3; padding: 4px 8px; border-radius: 8px; background: var(--bad); color: #fff; font-size: 11.5px; font-weight: 650; white-space: nowrap; box-shadow: var(--shadow-2); pointer-events: none; animation: gd-err .3s var(--ease); }
|
|
278
|
+
.gd__ed.r .gd__err { left: auto; right: 6px; }
|
|
279
|
+
@keyframes gd-err { from { opacity: 0; transform: translateY(-4px); } }
|
|
280
|
+
.gd tbody tr:last-child:not(:first-child) .gd__err { top: auto; bottom: calc(100% - 4px); }
|
|
281
|
+
|
|
282
|
+
/* ---------------- code field (otp()) ---------------- */
|
|
283
|
+
.otp { position: relative; display: inline-flex; align-items: center; gap: 8px; }
|
|
284
|
+
.otp__box { width: 46px; height: 54px; padding: 0; border-radius: 13px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink);
|
|
285
|
+
font: 700 22px/1 var(--font); text-align: center; caret-color: var(--accent); font-variant-numeric: tabular-nums;
|
|
286
|
+
transition: border-color .2s, box-shadow .25s, background .3s, color .3s; }
|
|
287
|
+
.otp__box:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line-2)); }
|
|
288
|
+
.otp__box:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
|
|
289
|
+
.otp__box.is-filled { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); background: color-mix(in srgb, var(--accent-soft) 45%, var(--card)); }
|
|
290
|
+
.otp__box[type="password"] { font-size: 26px; letter-spacing: 0; }
|
|
291
|
+
.otp__box::selection { background: transparent; }
|
|
292
|
+
.otp__box:disabled { opacity: 1; }
|
|
293
|
+
.otp__dash { width: 12px; height: 2.5px; border-radius: 2px; background: var(--line-2); flex: none; }
|
|
294
|
+
.otp.is-bad .otp__box { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
|
|
295
|
+
.otp.is-good .otp__box { border-color: var(--good); background: var(--good-soft); color: var(--good); box-shadow: none; }
|
|
296
|
+
.otp.is-done .otp__dash { opacity: 0; transition: opacity .2s; }
|
|
297
|
+
.otp__done { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center;
|
|
298
|
+
background: var(--good); color: #fff; box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--good) 70%, transparent); opacity: 0; pointer-events: none; }
|
|
299
|
+
.otp__done svg { width: 28px; height: 28px; }
|
|
300
|
+
.otp__done path { stroke-dasharray: 22; }
|
|
301
|
+
@media (max-width: 420px) {
|
|
302
|
+
.otp { gap: 6px; }
|
|
303
|
+
.otp__box { width: 40px; height: 48px; font-size: 19px; border-radius: 11px; }
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/* Booking timeline: timeline(el, …) */
|
|
307
|
+
.tl { --tl-day: 56px; --tl-row: 58px; --tl-label: 172px; --tl-head: 54px; position: relative; font-variant-numeric: tabular-nums; }
|
|
308
|
+
.tl__scroll { overflow: auto; max-height: var(--tl-max-h, none); overscroll-behavior-x: contain; border-radius: inherit; }
|
|
309
|
+
.tl__grid { position: relative; width: max-content; min-width: 100%; }
|
|
310
|
+
.tl__head { position: sticky; top: 0; z-index: 4; display: flex; height: var(--tl-head); background: var(--card); border-bottom: 1px solid var(--line); }
|
|
311
|
+
.tl__corner { position: sticky; left: 0; z-index: 2; flex: none; width: var(--tl-label); display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 0 14px; background: var(--card); border-right: 1px solid var(--line); }
|
|
312
|
+
.tl__corner b { font-size: 13px; }
|
|
313
|
+
.tl__corner small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
314
|
+
.tl__days { display: flex; }
|
|
315
|
+
.tl__day { flex: none; width: var(--tl-day); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 11px; }
|
|
316
|
+
.tl__day b { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; color: var(--ink); font-size: 13.5px; font-weight: 700; }
|
|
317
|
+
.tl__day.is-wk small { color: var(--faint); }
|
|
318
|
+
.tl__day.is-today small { color: var(--accent); font-weight: 700; }
|
|
319
|
+
.tl__day.is-today b { background: var(--accent); color: var(--accent-ink); }
|
|
320
|
+
.tl__body { position: relative; }
|
|
321
|
+
.tl__cols { position: absolute; top: 0; bottom: 0; left: var(--tl-label); display: flex; pointer-events: none; }
|
|
322
|
+
.tl__col { flex: none; width: var(--tl-day); border-left: 1px solid var(--line); }
|
|
323
|
+
.tl__col.is-wk { background: color-mix(in srgb, var(--ink) 3%, transparent); }
|
|
324
|
+
.tl__col.is-today { background: color-mix(in srgb, var(--accent) 7%, transparent); }
|
|
325
|
+
.tl__now { position: absolute; z-index: 2; top: 0; bottom: 0; left: calc(var(--tl-label) + var(--tl-day) * var(--k, 0)); width: 2px; margin-left: -1px; background: var(--bad); pointer-events: none; }
|
|
326
|
+
.tl__now::before { content: ''; position: absolute; top: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
|
|
327
|
+
.tl__row { position: relative; display: flex; height: var(--tl-row); border-bottom: 1px solid var(--line); }
|
|
328
|
+
.tl__row:last-child { border-bottom: 0; }
|
|
329
|
+
.tl__label { position: sticky; left: 0; z-index: 3; flex: none; display: flex; align-items: center; gap: 10px; width: var(--tl-label); min-width: 0; padding: 0 14px; background: var(--card); border-right: 1px solid var(--line); }
|
|
330
|
+
.tl__ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
|
|
331
|
+
.tl__ic svg { width: 17px; height: 17px; }
|
|
332
|
+
.tl__name { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
|
|
333
|
+
.tl__name b, .tl__name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
334
|
+
.tl__name b { font-size: 13px; }
|
|
335
|
+
.tl__name small { color: var(--muted); font-size: 11.5px; }
|
|
336
|
+
.tl__lane { position: relative; flex: none; width: calc(var(--tl-day) * var(--tl-days, 14)); }
|
|
337
|
+
.tl__bar { --tl-c: var(--accent); position: absolute; z-index: 1; top: 7px; bottom: 7px; left: calc(var(--tl-day) * var(--k, 0) + 3px); width: calc(var(--tl-day) * var(--n, 1) - 6px); min-width: 14px; display: flex; align-items: center; padding: 0 10px; border-radius: 11px; border: 1px solid color-mix(in srgb, var(--tl-c) 38%, transparent); background: color-mix(in srgb, var(--tl-c) 15%, var(--card)); color: color-mix(in srgb, var(--tl-c) 72%, var(--ink)); text-align: left; cursor: grab; touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: box-shadow .2s, background-color .2s, border-color .2s, color .2s; }
|
|
338
|
+
.tl__bar:hover { box-shadow: var(--shadow-2); }
|
|
339
|
+
.tl__bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
340
|
+
.tl__bar.is-out { background: var(--tl-c); border-color: transparent; color: #fff; }
|
|
341
|
+
.tl__bar.is-late { --tl-c: var(--bad); background: var(--tl-c); border-color: transparent; color: #fff; }
|
|
342
|
+
.tl__bar.is-done { --tl-c: var(--muted); background: var(--card-2); border-style: dashed; color: var(--muted); }
|
|
343
|
+
.tl__bar.is-service { --tl-c: var(--warn); background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--warn) 20%, var(--card)) 0 6px, color-mix(in srgb, var(--warn) 9%, var(--card)) 6px 12px); }
|
|
344
|
+
.tl__bar.is-cut-s { border-top-left-radius: 3px; border-bottom-left-radius: 3px; }
|
|
345
|
+
.tl__bar.is-cut-e { border-top-right-radius: 3px; border-bottom-right-radius: 3px; }
|
|
346
|
+
.tl__bar.is-locked, .tl--readonly .tl__bar { cursor: pointer; }
|
|
347
|
+
.tl__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; pointer-events: none; }
|
|
348
|
+
.tl__txt b, .tl__txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
349
|
+
.tl__txt b { font-size: 12.5px; font-weight: 700; }
|
|
350
|
+
.tl__txt small { font-size: 11px; opacity: .8; }
|
|
351
|
+
.tl__grip { position: absolute; top: 0; bottom: 0; width: 12px; cursor: ew-resize; }
|
|
352
|
+
.tl__grip--s { left: -3px; }
|
|
353
|
+
.tl__grip--e { right: -3px; }
|
|
354
|
+
.tl__grip::after { content: ''; position: absolute; top: 50%; left: 50%; width: 3px; height: 14px; margin: -7px 0 0 -1.5px; border-radius: 2px; background: currentColor; opacity: 0; transition: opacity .2s; }
|
|
355
|
+
.tl__bar:hover .tl__grip::after, .tl__bar.is-drag .tl__grip::after { opacity: .45; }
|
|
356
|
+
.tl__bar.is-locked .tl__grip, .tl__bar.is-lock-s .tl__grip--s, .tl--readonly .tl__grip { display: none; }
|
|
357
|
+
.tl__bar.is-lock-s { cursor: pointer; }
|
|
358
|
+
.tl__bar.is-drag { z-index: 6; cursor: grabbing; box-shadow: 0 16px 30px -12px rgba(16, 18, 24, .4); }
|
|
359
|
+
.tl__bar.is-clash { background: color-mix(in srgb, var(--bad) 16%, var(--card)); border-color: var(--bad); color: var(--bad); }
|
|
360
|
+
.tl.is-dragging, .tl.is-dragging * { cursor: grabbing; }
|
|
361
|
+
.tl__ghost { position: absolute; z-index: 5; top: 4px; bottom: 4px; left: calc(var(--tl-day) * var(--k, 0) + 1px); width: calc(var(--tl-day) * var(--n, 1) - 2px); border: 2px dashed var(--accent); border-radius: 13px; background: color-mix(in srgb, var(--accent) 7%, transparent); pointer-events: none; }
|
|
362
|
+
.tl__ghost.is-clash { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); }
|
|
363
|
+
.tl__ghost span { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 4px 9px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 11.5px; font-weight: 650; white-space: nowrap; box-shadow: var(--shadow-2); }
|
|
364
|
+
.tl__ghost.is-clash span { background: var(--bad); color: #fff; }
|
|
365
|
+
.tl__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
366
|
+
@media (max-width: 640px) { .tl { --tl-day: 46px; --tl-label: 116px; --tl-row: 54px; } .tl__ic { display: none; } .tl__label, .tl__corner { padding: 0 10px; } }
|
|
367
|
+
@media (prefers-reduced-motion: reduce) { .tl__bar { transition: none; } }
|
|
368
|
+
|
|
369
|
+
/* ---------- swipe actions (swipeItem / swipeActions) ----------
|
|
370
|
+
Width of one button: --swp-w (default 76px) on the list or any parent.
|
|
371
|
+
Row background: --swp-bg (default the card colour). */
|
|
372
|
+
.swp { position: relative; overflow: hidden; isolation: isolate; touch-action: pan-y; }
|
|
373
|
+
.swp + .swp { border-top: 1px solid var(--line); }
|
|
374
|
+
.swp__main { position: relative; z-index: 3; background: var(--swp-bg, var(--card)); touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; will-change: transform; }
|
|
375
|
+
.swp__main img { -webkit-user-drag: none; }
|
|
376
|
+
.swp__main:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
|
|
377
|
+
.swp.is-start .swp__main, .swp.is-end .swp__main { box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgb(0 0 0 / .12); }
|
|
378
|
+
.swp.is-swiping .swp__main { cursor: grabbing; }
|
|
379
|
+
.swp__acts { position: absolute; inset: 0; z-index: 1; visibility: hidden; }
|
|
380
|
+
.swp.is-start .swp__acts--start, .swp.is-end .swp__acts--end { visibility: visible; }
|
|
381
|
+
.swp__act { --swp-c: var(--hue-slate); position: absolute; top: 0; bottom: 0; width: var(--swp-w, 76px); display: flex; align-items: center; margin: 0; padding: 0; border: 0; border-radius: 0; color: #fff; background: var(--swp-c); font: 600 var(--fs-xs)/1.15 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent; }
|
|
382
|
+
.swp__acts--start .swp__act { left: 0; justify-content: flex-start; }
|
|
383
|
+
.swp__acts--end .swp__act { right: 0; justify-content: flex-end; }
|
|
384
|
+
.swp__act--good { --swp-c: var(--good); }
|
|
385
|
+
.swp__act--bad { --swp-c: var(--bad); }
|
|
386
|
+
.swp__act--warn { --swp-c: var(--warn); }
|
|
387
|
+
.swp__act--accent { --swp-c: var(--accent); }
|
|
388
|
+
[data-theme="dark"] .swp__act { background: color-mix(in srgb, var(--swp-c) 80%, #000); }
|
|
389
|
+
.swp__act:hover { filter: brightness(1.06); }
|
|
390
|
+
.swp__act:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
|
|
391
|
+
.swp__in { flex: none; width: var(--swp-w, 76px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 6px; text-align: center; pointer-events: none; transform-origin: 50% 50%; }
|
|
392
|
+
.swp__in svg { width: 20px; height: 20px; flex: none; }
|
|
393
|
+
.swp--icons .swp__lb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
394
|
+
.swp--icons .swp__in svg { width: 22px; height: 22px; }
|
|
395
|
+
.swp--labels .swp__in svg { display: none; }
|
|
396
|
+
|
|
397
|
+
/* ---------- date range picker (dateRange) ----------
|
|
398
|
+
Day size: --rp-cell (default 40px) on the picker or any parent. */
|
|
399
|
+
.rp { position: relative; display: flex; gap: 16px; align-items: flex-start; max-width: 100%; color: var(--ink); font-variant-numeric: tabular-nums; }
|
|
400
|
+
.rp__presets { display: flex; flex-direction: column; gap: 4px; min-width: 128px; padding-right: 14px; border-right: 1px solid var(--line); }
|
|
401
|
+
.rp__preset { text-align: left; padding: 8px 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-2); font: 600 var(--fs-sm)/1.2 var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
|
|
402
|
+
.rp__preset:hover { background: var(--bg-2); color: var(--ink); }
|
|
403
|
+
.rp__preset[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
|
|
404
|
+
.rp__body { position: relative; flex: 1; min-width: 0; }
|
|
405
|
+
.rp__nav { position: absolute; inset: 0 0 auto; display: flex; justify-content: space-between; pointer-events: none; z-index: 2; }
|
|
406
|
+
.rp__arrow { pointer-events: auto; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
|
|
407
|
+
.rp__arrow:hover:not(:disabled) { background: var(--bg-2); color: var(--ink); }
|
|
408
|
+
.rp__arrow:disabled { opacity: .3; cursor: default; }
|
|
409
|
+
.rp__arrow svg { width: 16px; height: 16px; }
|
|
410
|
+
.rp__months { display: flex; gap: 24px; overflow: hidden; }
|
|
411
|
+
.rp__month { flex: 1 1 calc(var(--rp-cell, 40px) * 7); min-width: calc(var(--rp-cell, 40px) * 7); }
|
|
412
|
+
.rp__title { height: 32px; display: grid; place-items: center; font-weight: 700; font-size: var(--fs-md); text-transform: capitalize; }
|
|
413
|
+
.rp__wk, .rp__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
|
|
414
|
+
.rp__wk { margin: 8px 0 4px; }
|
|
415
|
+
.rp__wk span { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--muted); }
|
|
416
|
+
.rp__grid { row-gap: 2px; }
|
|
417
|
+
.rp__d { position: relative; height: var(--rp-cell, 40px); padding: 0; border: 0; background: none; color: inherit; font: 500 var(--fs-sm)/1 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent; }
|
|
418
|
+
.rp__bg { position: absolute; inset: 3px 0; background: var(--accent-soft); opacity: 0; pointer-events: none; }
|
|
419
|
+
.rp__n { position: relative; z-index: 1; width: calc(var(--rp-cell, 40px) - 4px); height: calc(var(--rp-cell, 40px) - 4px); max-width: 100%; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; transition: background .15s, color .15s, box-shadow .15s; }
|
|
420
|
+
.rp__d:hover .rp__n { background: var(--bg-2); }
|
|
421
|
+
.rp__d:focus-visible { outline: none; }
|
|
422
|
+
.rp__d:focus-visible .rp__n { box-shadow: 0 0 0 2px var(--accent); }
|
|
423
|
+
.rp__d.is-today .rp__n::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
|
|
424
|
+
.rp__d.is-off { color: var(--faint); cursor: not-allowed; }
|
|
425
|
+
.rp__d.is-off .rp__n { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--faint) 70%, transparent); }
|
|
426
|
+
.rp__d.is-off:hover .rp__n { background: none; }
|
|
427
|
+
/* the band between start and end (rounded where a week or month starts or ends) */
|
|
428
|
+
.rp__d.is-in .rp__bg, .rp__d.is-pv .rp__bg, .rp__d.is-pv-e .rp__bg, .rp__d.is-pv-s .rp__bg,
|
|
429
|
+
.rp__d.is-s:not(.is-one) .rp__bg, .rp__d.is-e .rp__bg { opacity: 1; }
|
|
430
|
+
.rp__d.is-s .rp__bg, .rp__d.is-pv-s .rp__bg { left: 50%; }
|
|
431
|
+
.rp__d.is-e .rp__bg, .rp__d.is-pv-e .rp__bg { right: 50%; }
|
|
432
|
+
.rp__d.is-row-s .rp__bg { border-top-left-radius: 999px; border-bottom-left-radius: 999px; }
|
|
433
|
+
.rp__d.is-row-e .rp__bg { border-top-right-radius: 999px; border-bottom-right-radius: 999px; }
|
|
434
|
+
.rp__d.is-pv .rp__bg, .rp__d.is-pv-e .rp__bg, .rp__d.is-pv-s .rp__bg { background: color-mix(in srgb, var(--accent) 9%, transparent); }
|
|
435
|
+
.rp__d.is-bad .rp__bg { background: color-mix(in srgb, var(--bad) 12%, transparent); }
|
|
436
|
+
.rp__d.is-pv-e .rp__n { box-shadow: inset 0 0 0 1.5px var(--accent); }
|
|
437
|
+
.rp__d.is-pv-e.is-bad .rp__n { box-shadow: inset 0 0 0 1.5px var(--bad); color: var(--bad); }
|
|
438
|
+
.rp__d.is-s .rp__n, .rp__d.is-e .rp__n { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
|
|
439
|
+
.rp__d.is-s.is-today .rp__n::after, .rp__d.is-e.is-today .rp__n::after { background: var(--accent-ink); }
|
|
440
|
+
.rp__ring { position: absolute; z-index: 0; left: 50%; top: 50%; width: calc(var(--rp-cell, 40px) - 4px); height: calc(var(--rp-cell, 40px) - 4px); margin: calc((var(--rp-cell, 40px) - 4px) / -2) 0 0 calc((var(--rp-cell, 40px) - 4px) / -2); border-radius: 50%; border: 2px solid var(--accent); pointer-events: none; }
|
|
441
|
+
.rp__tip { position: absolute; left: 0; top: 0; z-index: 5; padding: 4px 9px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 11.5px; font-weight: 700; white-space: nowrap; pointer-events: none; opacity: 0; }
|
|
442
|
+
.rp__tip.is-bad { background: var(--bad); color: #fff; }
|
|
443
|
+
.rp__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
444
|
+
@media (max-width: 640px) {
|
|
445
|
+
.rp { flex-direction: column; gap: 12px; }
|
|
446
|
+
.rp__presets { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; min-width: 0; max-width: 100%; padding: 0 0 10px; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
|
|
447
|
+
.rp__preset { flex: none; border: 1px solid var(--line); }
|
|
448
|
+
.rp__body { width: 100%; }
|
|
449
|
+
.rp__d { --rp-cell: 44px; }
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/* ---------- kanban board (kanban) ----------
|
|
453
|
+
Column width: --kb-col (280px). A column's colour: --kb-c (set from columns[].color). */
|
|
454
|
+
.kb { display: flex; gap: 12px; align-items: stretch; height: 100%; overflow-x: auto; overscroll-behavior-x: contain; padding: 2px 2px 10px; scroll-padding: 0 2px; scrollbar-width: thin; }
|
|
455
|
+
.kb__col { --kb-c: var(--muted); position: relative; flex: 0 0 var(--kb-col, 280px); display: flex; flex-direction: column; min-height: 0; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid transparent; transition: background .2s, border-color .2s; }
|
|
456
|
+
.kb__head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; }
|
|
457
|
+
.kb__head h3 { margin: 0; font-size: var(--fs-sm); font-weight: 700; }
|
|
458
|
+
.kb__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--kb-c); flex: none; }
|
|
459
|
+
.kb__count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--card); color: var(--muted); font-size: 11.5px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
|
|
460
|
+
.kb__col.is-full .kb__count { background: var(--warn-soft); color: var(--warn); }
|
|
461
|
+
.kb__col.is-over .kb__count { background: var(--bad-soft); color: var(--bad); }
|
|
462
|
+
.kb__list { flex: 1; min-height: 64px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; padding: 4px 10px 10px; }
|
|
463
|
+
.kb__list:not(:has(> .kb__card:not(.is-src), > .kb__ph))::before { content: attr(data-empty); display: grid; place-items: center; min-height: 64px; border: 1.5px dashed var(--line-2); border-radius: var(--r); color: var(--faint); font-size: 12.5px; }
|
|
464
|
+
.kb__card { position: relative; flex: none; display: grid; gap: 6px; padding: 11px 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); color: var(--ink); cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: box-shadow .2s, border-color .2s; }
|
|
465
|
+
.kb__card.has-c::before { content: ''; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--kb-c); }
|
|
466
|
+
.kb__card:hover { border-color: var(--line-2); }
|
|
467
|
+
.kb__card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
468
|
+
.kb__card.is-src { display: none; }
|
|
469
|
+
.kb__card.is-ghost { position: fixed; z-index: 1200; margin: 0; pointer-events: none; cursor: grabbing; box-shadow: var(--shadow-3); border-color: var(--accent-line); will-change: left, top, transform; }
|
|
470
|
+
.kb__card.is-grabbed { z-index: 2; box-shadow: var(--shadow-3); border-color: var(--accent); }
|
|
471
|
+
.kb__ph { flex: none; border-radius: var(--r); border: 2px dashed var(--accent-line); background: color-mix(in srgb, var(--accent) 6%, transparent); }
|
|
472
|
+
.kb.is-dragging .kb__col.is-over-t { border-color: var(--accent-line); background: color-mix(in srgb, var(--accent) 5%, var(--bg-2)); }
|
|
473
|
+
.kb.is-dragging .kb__col.is-no { border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 7%, var(--bg-2)); cursor: no-drop; }
|
|
474
|
+
.kb__tags { display: flex; flex-wrap: wrap; gap: 4px; }
|
|
475
|
+
.kb__tags .tag { font-size: 11px; }
|
|
476
|
+
.kb__title { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
|
|
477
|
+
.kb__text { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
|
|
478
|
+
.kb__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
|
|
479
|
+
.kb__add { display: flex; align-items: center; gap: 6px; margin: 0 10px 10px; padding: 8px 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); font: 600 12.5px/1 var(--font); cursor: pointer; transition: background .15s, color .15s; }
|
|
480
|
+
.kb__add:hover { background: var(--card); color: var(--ink); }
|
|
481
|
+
.kb__add svg { width: 15px; height: 15px; }
|
|
482
|
+
.kb__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
|
|
483
|
+
@media (max-width: 640px) {
|
|
484
|
+
.kb { scroll-snap-type: x mandatory; padding-left: 2px; }
|
|
485
|
+
.kb.is-dragging { scroll-snap-type: none; }
|
|
486
|
+
.kb__col { flex-basis: min(var(--kb-col, 280px), 82vw); scroll-snap-align: start; }
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/* ---------- signature pad (signaturePad) ----------
|
|
490
|
+
Shape: --sig-ratio (3 / 1). Ink: the text colour unless you pass color. */
|
|
491
|
+
.sig { position: relative; width: 100%; aspect-ratio: var(--sig-ratio, 3 / 1); min-height: 120px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line-2); color: var(--ink); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
|
|
492
|
+
.sig:hover:not(.is-readonly) { border-color: var(--accent-line); }
|
|
493
|
+
.sig:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
|
|
494
|
+
.sig__pad, .sig__fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
|
|
495
|
+
.sig__pad { z-index: 2; touch-action: none; cursor: crosshair; }
|
|
496
|
+
.sig__fx { z-index: 3; pointer-events: none; }
|
|
497
|
+
.sig.is-readonly .sig__pad { cursor: default; }
|
|
498
|
+
.sig__guide { position: absolute; left: 7%; right: 7%; bottom: 26%; z-index: 1; display: flex; align-items: flex-end; gap: 8px; pointer-events: none; color: var(--faint); }
|
|
499
|
+
.sig__guide i { flex: 1; border-bottom: 1.5px dashed var(--line-2); margin-bottom: 4px; }
|
|
500
|
+
.sig__x { font-size: 20px; line-height: 1; font-weight: 300; }
|
|
501
|
+
.sig__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 13px; font-weight: 600; white-space: nowrap; transition: opacity .3s, transform .3s; }
|
|
502
|
+
.sig.is-signed .sig__hint { opacity: 0; transform: translate(-50%, -6px); }
|
|
503
|
+
.sig__tools { position: absolute; top: 8px; right: 8px; z-index: 4; display: flex; gap: 4px; transition: opacity .2s; }
|
|
504
|
+
.sig__tool { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--card) 80%, transparent); color: var(--muted); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .15s, color .15s, opacity .2s; }
|
|
505
|
+
.sig__tool:hover:not(:disabled) { background: var(--bg-2); color: var(--ink); }
|
|
506
|
+
.sig__tool:disabled { opacity: 0; pointer-events: none; }
|
|
507
|
+
.sig__tool svg { width: 15px; height: 15px; }
|
|
508
|
+
.sig__tool[data-t="undo"] svg { transform: scaleX(-1); }
|
|
509
|
+
.sig__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
510
|
+
|
|
511
|
+
/* ---------- photo upload (photoUpload) ----------
|
|
512
|
+
Tile size: --pu-size (112px, the smallest a tile gets) · --pu-ratio (1) · --pu-gap (10px). */
|
|
513
|
+
.pu { position: relative; }
|
|
514
|
+
.pu__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
|
|
515
|
+
.pu__grid { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--pu-size, 112px), 1fr)); gap: var(--pu-gap, 10px); }
|
|
516
|
+
.pu__tile, .pu__add { position: relative; aspect-ratio: var(--pu-ratio, 1); border-radius: var(--r); }
|
|
517
|
+
.pu__tile { overflow: hidden; isolation: isolate; background: var(--bg-2); outline: none; cursor: grab; touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: box-shadow .2s; }
|
|
518
|
+
.pu__tile:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
|
|
519
|
+
.pu__tile.is-lift { z-index: 5; cursor: grabbing; box-shadow: var(--shadow-3); }
|
|
520
|
+
.pu.is-sorting, .pu.is-sorting * { cursor: grabbing !important; }
|
|
521
|
+
.pu.is-readonly .pu__tile { cursor: default; }
|
|
522
|
+
.pu__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
|
|
523
|
+
.pu__tile.is-broken .pu__img { visibility: hidden; }
|
|
524
|
+
.pu__tile.is-broken::before { content: attr(data-ext); position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--faint); }
|
|
525
|
+
.pu__veil { position: absolute; inset: 0; z-index: 1; background: rgb(10 12 18 / .58); opacity: 0; pointer-events: none; transition: opacity .3s, background-color .3s; }
|
|
526
|
+
.pu__tile.is-queued .pu__veil, .pu__tile.is-uploading .pu__veil, .pu__tile.is-error .pu__veil { opacity: 1; }
|
|
527
|
+
.pu__tile.is-error .pu__veil { background: color-mix(in srgb, var(--bad) 62%, rgb(10 12 18 / .7)); }
|
|
528
|
+
.pu__state { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; color: #fff; pointer-events: none; }
|
|
529
|
+
.pu__state > * { grid-area: 1 / 1; }
|
|
530
|
+
.pu__ring { position: relative; width: 46px; height: 46px; display: grid; place-items: center; opacity: 0; transition: opacity .25s; }
|
|
531
|
+
.pu__tile.is-queued .pu__ring, .pu__tile.is-uploading .pu__ring { opacity: 1; }
|
|
532
|
+
.pu__tile.is-error .pu__ring { transition: none; }
|
|
533
|
+
.pu__ring svg { position: absolute; inset: 0; width: 100% !important; height: 100% !important; transform: rotate(-90deg); }
|
|
534
|
+
.pu__ring circle { fill: none; stroke-width: 3; }
|
|
535
|
+
.pu__track { stroke: rgb(255 255 255 / .25); }
|
|
536
|
+
.pu__arc { stroke: #fff; stroke-linecap: round; }
|
|
537
|
+
.pu__ring b { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
|
|
538
|
+
.pu__tile.is-queued .pu__ring b { opacity: 0; }
|
|
539
|
+
.pu__tile.is-queued .pu__arc { stroke-dashoffset: .75 !important; }
|
|
540
|
+
.pu__tile.is-queued .pu__ring svg { animation: pu-spin .9s linear infinite; }
|
|
541
|
+
@keyframes pu-spin { to { transform: rotate(270deg); } }
|
|
542
|
+
.pu__tick { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: #fff; opacity: 0; box-shadow: 0 4px 14px rgb(0 0 0 / .25); }
|
|
543
|
+
.pu__tick svg { width: 18px !important; height: 18px !important; }
|
|
544
|
+
.pu__err { display: none; flex-direction: column; align-items: center; gap: 4px; padding: 6px; text-align: center; pointer-events: auto; }
|
|
545
|
+
.pu__tile.is-error .pu__err { display: flex; }
|
|
546
|
+
.pu__err svg { width: 20px !important; height: 20px !important; }
|
|
547
|
+
.pu__err small { font-size: 11px; font-weight: 700; line-height: 1.2; }
|
|
548
|
+
.pu__retry { margin-top: 2px; padding: 4px 11px; border: 0; border-radius: var(--r-full); background: #fff; color: #14161c; font: 700 12px/1.3 var(--font); cursor: pointer; transition: transform .15s; }
|
|
549
|
+
.pu__retry:hover { transform: scale(1.05); }
|
|
550
|
+
.pu__retry:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
|
|
551
|
+
.pu__x { position: absolute; top: 6px; right: 6px; z-index: 3; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgb(10 12 18 / .55); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .15s, transform .15s; }
|
|
552
|
+
.pu__x:hover { background: var(--bad); transform: scale(1.08); }
|
|
553
|
+
.pu__x:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
554
|
+
.pu__x svg { width: 13px !important; height: 13px !important; }
|
|
555
|
+
.pu.is-sorting .pu__x { opacity: 0; }
|
|
556
|
+
.pu__badge { position: absolute; left: 6px; bottom: 6px; z-index: 3; display: none; padding: 2px 8px; border-radius: var(--r-full); background: var(--card); color: var(--ink); font-size: 11px; font-weight: 700; box-shadow: var(--shadow-1); pointer-events: none; }
|
|
557
|
+
.pu--cover .pu__tile:first-child .pu__badge { display: block; }
|
|
558
|
+
.pu__pick { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; border: 1.5px dashed var(--line-2); border-radius: inherit; background: transparent; color: var(--muted); font: inherit; text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
|
|
559
|
+
.pu__pick:hover, .pu.is-over .pu__pick { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
|
|
560
|
+
.pu__pick:focus-visible { outline: none; border-style: solid; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
|
|
561
|
+
.pu__ico { display: grid; place-items: center; width: 30px; height: 30px; transition: transform .3s var(--ease, ease); }
|
|
562
|
+
.pu__ico svg { width: 22px !important; height: 22px !important; }
|
|
563
|
+
.pu.is-over .pu__ico { transform: translateY(-4px) scale(1.1); }
|
|
564
|
+
.pu__big, .pu__small { display: grid; gap: 2px; }
|
|
565
|
+
.pu__pick b { font-size: 13px; font-weight: 700; color: var(--ink); }
|
|
566
|
+
.pu__pick small { font-size: 12px; }
|
|
567
|
+
.pu__hint { margin-top: 4px; color: var(--faint); }
|
|
568
|
+
.pu.is-empty .pu__add { grid-column: 1 / -1; aspect-ratio: auto; min-height: var(--pu-empty-h, 180px); }
|
|
569
|
+
.pu.is-empty .pu__ico { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-2); }
|
|
570
|
+
.pu.is-empty .pu__small, .pu:not(.is-empty) .pu__big { display: none; }
|
|
571
|
+
.pu.is-full .pu__add { display: none; }
|
|
572
|
+
.pu__grid::after { content: attr(data-drop); position: absolute; inset: -5px; z-index: 6; display: grid; place-items: center; border: 2px dashed var(--accent); border-radius: var(--r-lg); background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--accent); font-weight: 700; opacity: 0; pointer-events: none; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); transition: opacity .2s; }
|
|
573
|
+
.pu.is-over:not(.is-empty) .pu__grid::after { opacity: 1; }
|
|
574
|
+
.pu__msg { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: var(--bad); }
|
|
575
|
+
.pu__msg:empty { display: none; }
|
|
576
|
+
.pu__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
577
|
+
@media (prefers-reduced-motion: reduce) { .pu__tile.is-queued .pu__ring svg { animation: none; } }
|
|
578
|
+
|
|
579
|
+
/* ---------- multi-select (multiSelect) ----------
|
|
580
|
+
List height: --ms-list-h (280px). */
|
|
581
|
+
.ms { position: relative; width: 100%; }
|
|
582
|
+
.ms.is-open { z-index: 40; }
|
|
583
|
+
.ms__field { position: relative; display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 6px 4px 5px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: text; transition: border-color .2s, box-shadow .2s; }
|
|
584
|
+
.ms__field:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--line-2)); }
|
|
585
|
+
.ms.is-focus .ms__field { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
|
|
586
|
+
.ms.is-disabled .ms__field { opacity: .55; cursor: not-allowed; }
|
|
587
|
+
.ms__chips { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
|
|
588
|
+
.ms__input { flex: 1 0 80px; min-width: 60px; height: 30px; padding: 0 6px; border: 0; outline: none; background: transparent; color: inherit; font: inherit; }
|
|
589
|
+
.ms__input::placeholder { color: var(--faint); }
|
|
590
|
+
.ms.is-full .ms__input { flex-basis: 8px; min-width: 8px; }
|
|
591
|
+
.ms__chip { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 28px; max-width: 100%; padding: 0 3px 0 9px; border-radius: 8px; background: var(--bg-2); color: var(--ink); font-size: 13px; font-weight: 600; outline: none; white-space: nowrap; transition: background-color .15s, box-shadow .15s, color .15s; }
|
|
592
|
+
.ms__chip--person { padding-left: 2px; border-radius: var(--r-full); }
|
|
593
|
+
.ms__chip .av { width: 22px; height: 22px; font-size: 8.5px; }
|
|
594
|
+
.ms__chipt { overflow: hidden; text-overflow: ellipsis; }
|
|
595
|
+
.ms__chip:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
|
|
596
|
+
.ms__chip.is-armed { background: var(--bad-soft); color: var(--bad); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--bad) 55%, transparent); }
|
|
597
|
+
.ms__chip.is-flying { z-index: 50; box-shadow: var(--shadow-2); }
|
|
598
|
+
.ms__x { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer; transition: background-color .15s, color .15s; }
|
|
599
|
+
.ms__x:hover { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
|
|
600
|
+
.ms__x svg { width: 12px !important; height: 12px !important; }
|
|
601
|
+
.ms__chip--person .ms__x { border-radius: 50%; }
|
|
602
|
+
.ms.is-disabled .ms__x { display: none; }
|
|
603
|
+
.ms__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c, var(--accent)); }
|
|
604
|
+
.ms__side { display: flex; align-items: center; gap: 2px; align-self: center; color: var(--muted); }
|
|
605
|
+
.ms__count { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--faint); padding: 0 4px; }
|
|
606
|
+
.ms.is-full .ms__count { color: var(--accent); }
|
|
607
|
+
.ms__count:empty { display: none; }
|
|
608
|
+
.ms__clear { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 8px; display: none; place-items: center; background: transparent; color: var(--muted); cursor: pointer; }
|
|
609
|
+
.ms__clear:hover { background: var(--bg-2); color: var(--ink); }
|
|
610
|
+
.ms.has-value:not(.is-disabled) .ms__clear { display: grid; }
|
|
611
|
+
.ms__clear svg { width: 14px !important; height: 14px !important; }
|
|
612
|
+
.ms__chev { display: grid; place-items: center; width: 22px; transition: transform .25s var(--ease, ease); }
|
|
613
|
+
.ms__chev svg { width: 16px !important; height: 16px !important; }
|
|
614
|
+
.ms.is-open .ms__chev { transform: rotate(180deg); }
|
|
615
|
+
.ms__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; max-height: var(--ms-list-h, 280px); overflow: auto; overscroll-behavior: contain; padding: 5px; border-radius: 13px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-3); transform-origin: 50% 0; }
|
|
616
|
+
.ms.is-up .ms__list { top: auto; bottom: calc(100% + 6px); transform-origin: 50% 100%; }
|
|
617
|
+
.ms__group { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
|
|
618
|
+
.ms__opt { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 5px 10px 5px 8px; border-radius: 9px; font-size: 14px; cursor: pointer; user-select: none; -webkit-user-select: none; }
|
|
619
|
+
.ms__opt.is-active { background: var(--bg-2); }
|
|
620
|
+
.ms__opt.is-off { opacity: .45; cursor: not-allowed; }
|
|
621
|
+
.ms__tick { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 6px; border: 1.5px solid var(--line-2); color: transparent; transition: background-color .15s, border-color .15s, color .15s, transform .2s var(--ease, ease); }
|
|
622
|
+
.ms__tick svg { width: 12px !important; height: 12px !important; }
|
|
623
|
+
.ms__opt.is-on .ms__tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
|
|
624
|
+
.ms__opt.is-on:active .ms__tick, .ms__opt:active .ms__tick { transform: scale(.88); }
|
|
625
|
+
.ms__opt > svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
|
|
626
|
+
.ms__opt--new { color: var(--accent); font-weight: 600; }
|
|
627
|
+
.ms__opt--new > svg { color: inherit; margin: 0 1px; }
|
|
628
|
+
.ms__lab { min-width: 0; display: grid; overflow: hidden; }
|
|
629
|
+
.ms__lab, .ms__lab small { white-space: nowrap; text-overflow: ellipsis; }
|
|
630
|
+
.ms__lab small { overflow: hidden; font-size: 12px; color: var(--muted); }
|
|
631
|
+
.ms__lab mark { background: none; color: var(--accent); font-weight: 700; }
|
|
632
|
+
.ms__empty { padding: 14px 10px; font-size: 13px; color: var(--muted); text-align: center; }
|
|
633
|
+
.ms__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
634
|
+
|
|
635
|
+
/* ---------- time picker (timePicker) ----------
|
|
636
|
+
Wheel: --tp-item (38px row) · --tp-rows (5). Slots: --tp-slot (76px, the narrowest a slot gets). */
|
|
637
|
+
.tp--wheel { --tp-item: 38px; --tp-rows: 5; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 2px; height: calc(var(--tp-item) * var(--tp-rows)); padding: 0 10px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); user-select: none; -webkit-user-select: none; }
|
|
638
|
+
.tp__band { position: absolute; left: 8px; right: 8px; top: 50%; z-index: 0; height: var(--tp-item); transform: translateY(-50%); border-radius: 10px; background: var(--bg-2); pointer-events: none; transition: box-shadow .2s; }
|
|
639
|
+
.tp--wheel:has(.tp__col:focus-visible) .tp__band { box-shadow: 0 0 0 2px var(--accent); }
|
|
640
|
+
.tp__col { position: relative; z-index: 1; width: 62px; height: 100%; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; outline: none; cursor: grab; perspective: 420px; -webkit-mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent); mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent); }
|
|
641
|
+
.tp__col::-webkit-scrollbar { display: none; }
|
|
642
|
+
.tp__col.is-drag { scroll-snap-type: none; cursor: grabbing; }
|
|
643
|
+
.tp__col--p { width: 54px; }
|
|
644
|
+
.tp__track { padding: calc(var(--tp-item) * (var(--tp-rows) - 1) / 2) 0; transform-style: preserve-3d; }
|
|
645
|
+
.tp__item { height: var(--tp-item); display: grid; place-items: center; scroll-snap-align: center; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); backface-visibility: hidden; transition: color .15s; }
|
|
646
|
+
.tp__col--p .tp__item { font-size: 15px; }
|
|
647
|
+
.tp__item.is-mid { color: var(--ink); font-weight: 700; }
|
|
648
|
+
.tp__item.is-off { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1.5px; }
|
|
649
|
+
.tp__sep { position: relative; z-index: 1; margin-top: -3px; font-size: 20px; font-weight: 700; color: var(--ink); }
|
|
650
|
+
.tp--slots { width: 100%; }
|
|
651
|
+
.tp__slots { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tp-slot, 76px), 1fr)); gap: 6px; }
|
|
652
|
+
.tp__group { grid-column: 1 / -1; padding: 10px 2px 0; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
|
|
653
|
+
.tp__mark + .tp__group { padding-top: 0; }
|
|
654
|
+
.tp__slot { position: relative; z-index: 1; height: 38px; padding: 0 6px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: 600 13.5px/1 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
|
|
655
|
+
.tp__slot:hover:not(:disabled):not(.is-on) { border-color: var(--accent-line); background: var(--accent-soft); }
|
|
656
|
+
.tp__slot.is-on { border-color: transparent; color: var(--accent-ink); }
|
|
657
|
+
.tp__slot:disabled { border-style: dashed; color: var(--faint); text-decoration: line-through; cursor: not-allowed; }
|
|
658
|
+
.tp__slot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
659
|
+
.tp__mark { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 10px; background: var(--accent); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent); pointer-events: none; opacity: 0; }
|
|
660
|
+
.tp__empty { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
|
|
661
|
+
|
|
662
|
+
/* ---------- number stepper (stepper) ----------
|
|
663
|
+
Size: .st--sm / .st--lg, or --st-h (44px) and --st-fs (17px). */
|
|
664
|
+
.st { --st-h: 44px; --st-fs: 17px; display: inline-flex; align-items: center; gap: 4px; height: var(--st-h); padding: 3px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
|
|
665
|
+
.st--sm { --st-h: 36px; --st-fs: 14px; border-radius: 10px; }
|
|
666
|
+
.st--lg { --st-h: 56px; --st-fs: 24px; padding: 4px; border-radius: 16px; }
|
|
667
|
+
.st:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
|
|
668
|
+
.st.is-disabled { opacity: .55; }
|
|
669
|
+
.st__btn { height: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 9px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink); cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: background-color .15s, color .15s, opacity .2s, transform .12s; }
|
|
670
|
+
.st--lg .st__btn { border-radius: 12px; }
|
|
671
|
+
.st__btn:hover:not(.is-end):not(:disabled) { background: var(--accent-soft); color: var(--accent); }
|
|
672
|
+
.st__btn:active:not(.is-end):not(:disabled) { transform: scale(.9); }
|
|
673
|
+
.st__btn.is-end, .st__btn:disabled { opacity: .4; cursor: not-allowed; }
|
|
674
|
+
.st__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
675
|
+
.st__btn svg { width: 16px !important; height: 16px !important; }
|
|
676
|
+
.st--lg .st__btn svg { width: 20px !important; height: 20px !important; }
|
|
677
|
+
.st__val { position: relative; min-width: 3.4em; height: 100%; padding: 0 8px; display: grid; place-items: center; border-radius: 8px; font-size: var(--st-fs); font-weight: 700; font-variant-numeric: tabular-nums; outline: none; cursor: text; }
|
|
678
|
+
.st__face { display: inline-flex; align-items: center; gap: .25em; white-space: nowrap; line-height: 1.25; }
|
|
679
|
+
.st__odo { display: inline-flex; height: 1.25em; overflow: hidden; }
|
|
680
|
+
.st__d, .st__c { display: inline-block; height: 1.25em; line-height: 1.25em; overflow: hidden; }
|
|
681
|
+
.st__strip { display: block; }
|
|
682
|
+
.st__strip i { display: block; height: 1.25em; font-style: normal; text-align: center; }
|
|
683
|
+
.st__pre, .st__unit { font-size: .72em; font-weight: 600; color: var(--muted); }
|
|
684
|
+
.st__unit[hidden] { display: none; }
|
|
685
|
+
.st__input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0 6px; border: 0; outline: none; background: transparent; color: inherit; font: inherit; text-align: center; opacity: 0; pointer-events: none; }
|
|
686
|
+
.st.is-editing .st__input { opacity: 1; pointer-events: auto; }
|
|
687
|
+
.st.is-editing .st__face { visibility: hidden; }
|
|
688
|
+
.st__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
689
|
+
|
|
690
|
+
/* ---------- notification feed (notifications) ----------
|
|
691
|
+
Height of the scrolling list: --nf-h (420px). .nf--plain drops the border and background. */
|
|
692
|
+
.nf { --nf-h: 420px; position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: var(--ink); }
|
|
693
|
+
.nf--plain { background: transparent; border: 0; border-radius: 0; }
|
|
694
|
+
.nf__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 4px; }
|
|
695
|
+
.nf__h { font-size: 15px; font-weight: 750; }
|
|
696
|
+
.nf__all { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; margin: -6px -8px -6px 0; border-radius: 8px; color: var(--accent); font-size: 12.5px; font-weight: 650; transition: background-color .15s, opacity .2s; }
|
|
697
|
+
.nf__all:hover:not(:disabled) { background: var(--accent-soft); }
|
|
698
|
+
.nf__all:disabled { opacity: .45; cursor: default; }
|
|
699
|
+
.nf__all:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
700
|
+
.nf__all svg { width: 14px !important; height: 14px !important; }
|
|
701
|
+
.nf__tabs { margin: 0; padding: 0 8px; }
|
|
702
|
+
.nf__tabs > button { padding: 10px 8px 11px; font-size: 13px; }
|
|
703
|
+
.nf__count { min-width: 18px; height: 18px; font-size: 10.5px; padding: 0 5px; }
|
|
704
|
+
.nf__count[hidden] { display: none; }
|
|
705
|
+
.nf__scroll { position: relative; max-height: var(--nf-h); overflow-y: auto; overscroll-behavior: contain; overflow-anchor: none; }
|
|
706
|
+
.nf__pill { position: sticky; top: 10px; z-index: 3; display: flex; align-items: center; gap: 6px; height: 30px; margin: 0 auto -30px; padding: 0 12px 0 10px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 12.5px; font-weight: 700; box-shadow: 0 8px 20px -8px var(--accent); }
|
|
707
|
+
.nf__pill[hidden] { display: none; }
|
|
708
|
+
.nf__pill svg { width: 14px !important; height: 14px !important; transform: rotate(-90deg); }
|
|
709
|
+
.nf__pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
|
|
710
|
+
.nf__grp { overflow: clip; }
|
|
711
|
+
.nf__grp[hidden] { display: none; }
|
|
712
|
+
.nf__gh { position: sticky; top: 0; z-index: 2; margin: 0; padding: 12px 16px 6px; background: var(--card); color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
|
|
713
|
+
.nf--plain .nf__gh { background: var(--nf-bg, var(--card)); }
|
|
714
|
+
.nf__list { list-style: none; margin: 0; padding: 0 6px 6px; display: grid; gap: 2px; }
|
|
715
|
+
.nf__row { position: relative; overflow: clip; }
|
|
716
|
+
.nf__row[hidden] { display: none; }
|
|
717
|
+
.nf__in { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 11px 36px 11px 14px; border-radius: 12px; transition: background-color .35s; }
|
|
718
|
+
.nf__row.is-unread .nf__in { background: color-mix(in oklab, var(--accent) 6%, transparent); }
|
|
719
|
+
.nf__in:hover { background: var(--bg-2); }
|
|
720
|
+
.nf__row.is-unread .nf__in:hover { background: color-mix(in oklab, var(--accent) 10%, transparent); }
|
|
721
|
+
.nf__row.is-fresh .nf__in { animation: nf-fresh 1.8s ease-out; }
|
|
722
|
+
@keyframes nf-fresh { 0%, 25% { background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 40%, transparent); } }
|
|
723
|
+
.nf__lead { position: relative; width: 36px; height: 36px; flex: none; }
|
|
724
|
+
.nf__lead .av { width: 36px; height: 36px; font-size: 12px; }
|
|
725
|
+
.nf__ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--c); background: color-mix(in oklab, var(--c) 15%, var(--card)); }
|
|
726
|
+
.nf__ic svg { width: 18px !important; height: 18px !important; }
|
|
727
|
+
.nf__badge { position: absolute; right: -6px; bottom: -5px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; box-shadow: 0 0 0 2.5px var(--card); }
|
|
728
|
+
.nf__badge svg { width: 10px !important; height: 10px !important; }
|
|
729
|
+
.nf__tone--accent { --c: var(--accent); } .nf__tone--good { --c: var(--good); } .nf__tone--warn { --c: var(--warn); } .nf__tone--bad { --c: var(--bad); } .nf__tone--plain { --c: var(--muted); }
|
|
730
|
+
.nf__tone--indigo { --c: var(--hue-indigo); } .nf__tone--teal { --c: var(--hue-teal); } .nf__tone--rose { --c: var(--hue-rose); } .nf__tone--amber { --c: var(--hue-amber); }
|
|
731
|
+
.nf__tone--violet { --c: var(--hue-violet); } .nf__tone--green { --c: var(--hue-green); } .nf__tone--slate { --c: var(--hue-slate); } .nf__tone--sky { --c: var(--hue-sky); }
|
|
732
|
+
.nf__text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
|
|
733
|
+
.nf__main { display: block; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; outline: none; scroll-margin: 44px 0 12px; }
|
|
734
|
+
.nf__main::after { content: ''; position: absolute; inset: 0; z-index: 0; border-radius: 12px; }
|
|
735
|
+
.nf__main:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }
|
|
736
|
+
.nf__title { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
|
|
737
|
+
.nf__title b { color: var(--ink); font-weight: 700; }
|
|
738
|
+
.nf__row.is-unread .nf__title { color: var(--ink); }
|
|
739
|
+
.nf__unr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
740
|
+
.nf__body { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
741
|
+
.nf__meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); }
|
|
742
|
+
.nf__meta > span::before { content: '·'; margin-right: 6px; }
|
|
743
|
+
.nf__acts, .nf__done { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
|
|
744
|
+
.nf__done { align-items: center; gap: 6px; color: var(--good); font-size: 12.5px; font-weight: 650; overflow: hidden; }
|
|
745
|
+
.nf__done svg { width: 15px !important; height: 15px !important; }
|
|
746
|
+
.nf__act { position: relative; }
|
|
747
|
+
.nf__act.is-busy { -webkit-text-fill-color: transparent; }
|
|
748
|
+
.nf__act.is-busy::after { content: ''; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: nf-spin .7s linear infinite; }
|
|
749
|
+
@keyframes nf-spin { to { transform: rotate(360deg); } }
|
|
750
|
+
.nf__acts.is-busy .nf__act:not(.is-busy) { opacity: .5; }
|
|
751
|
+
.nf__dot { position: absolute; left: 4px; top: 25px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); pointer-events: none; }
|
|
752
|
+
.nf__x { position: absolute; z-index: 1; top: 8px; right: 6px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); opacity: 0; transition: opacity .15s, background-color .15s, color .15s; }
|
|
753
|
+
.nf__x svg { width: 14px !important; height: 14px !important; }
|
|
754
|
+
.nf__in:hover .nf__x, .nf__x:focus-visible, .nf__in:focus-within .nf__x { opacity: 1; }
|
|
755
|
+
.nf__x:hover { background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); }
|
|
756
|
+
.nf__x:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
|
|
757
|
+
@media (hover: none) { .nf__x { opacity: .7; } }
|
|
758
|
+
.nf__empty[hidden] { display: none; }
|
|
759
|
+
.nf__empty .empty { padding: 36px 16px 40px; }
|
|
760
|
+
.nf__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
761
|
+
|
|
762
|
+
/* ---------- accordion (accordion) ----------
|
|
763
|
+
.acc--lines: one card with dividers · .acc--cards: a card per item. */
|
|
764
|
+
.acc { --acc-pad: 16px; display: flex; flex-direction: column; color: var(--ink); }
|
|
765
|
+
.acc--lines { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
|
|
766
|
+
.acc--lines > .acc__item + .acc__item { border-top: 1px solid var(--line); }
|
|
767
|
+
.acc--cards { gap: 8px; }
|
|
768
|
+
.acc--cards > .acc__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .25s, box-shadow .25s; }
|
|
769
|
+
.acc--cards > .acc__item.is-open { border-color: color-mix(in oklab, var(--accent) 35%, var(--line)); box-shadow: var(--shadow-1); }
|
|
770
|
+
.acc__item { overflow: clip; }
|
|
771
|
+
.acc__item[hidden] { display: none; }
|
|
772
|
+
.acc__h { margin: 0; font: inherit; }
|
|
773
|
+
.acc__btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px var(--acc-pad); border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: inherit; transition: background-color .15s; }
|
|
774
|
+
.acc--lines > .acc__item:first-child .acc__btn { border-radius: var(--r-lg) var(--r-lg) 0 0; }
|
|
775
|
+
.acc--lines > .acc__item:last-child:not(.is-open) .acc__btn { border-radius: 0 0 var(--r-lg) var(--r-lg); }
|
|
776
|
+
.acc--lines > .acc__item:only-child:not(.is-open) .acc__btn { border-radius: var(--r-lg); }
|
|
777
|
+
.acc__btn:hover:not(:disabled) { background: var(--bg-2); }
|
|
778
|
+
.acc__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
|
|
779
|
+
.acc__btn:disabled { cursor: not-allowed; opacity: .5; }
|
|
780
|
+
.acc__lead { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
|
|
781
|
+
.acc__lead svg { width: 17px !important; height: 17px !important; }
|
|
782
|
+
.acc__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
783
|
+
.acc__title { font-size: 14.5px; font-weight: 650; line-height: 1.35; }
|
|
784
|
+
.acc__sub { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
|
|
785
|
+
.acc__badge { flex: none; min-width: 20px; height: 20px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--bg-2); color: var(--ink-2); font-size: 11px; font-weight: 700; }
|
|
786
|
+
.acc__mk { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); transition: background-color .2s, color .2s; }
|
|
787
|
+
.acc__mk svg { width: 18px !important; height: 18px !important; }
|
|
788
|
+
.acc__item.is-open > .acc__h .acc__mk { color: var(--accent); background: var(--accent-soft); }
|
|
789
|
+
.acc__panel { overflow: clip; }
|
|
790
|
+
.acc__body { padding: 0 var(--acc-pad) 16px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
|
|
791
|
+
.acc__item:has(.acc__lead) .acc__body { padding-left: calc(var(--acc-pad) + 46px); }
|
|
792
|
+
.acc__body > :first-child { margin-top: 0; }
|
|
793
|
+
.acc__body > :last-child { margin-bottom: 0; }
|
|
794
|
+
.acc__body p { margin: 0 0 10px; }
|
|
795
|
+
.acc__body a { color: var(--accent); }
|
|
796
|
+
.acc__body .acc { margin-top: 4px; }
|
|
797
|
+
.acc__hit { background: color-mix(in oklab, var(--warn) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
|
|
798
|
+
|
|
799
|
+
/* ---------- rating (rating) ----------
|
|
800
|
+
Size: .rt--sm / .rt--lg or --rt-size (24px). Colours: --rt-on (filled), --rt-off (empty). */
|
|
801
|
+
.rt { --rt-size: 24px; --rt-on: var(--hue-amber); --rt-off: var(--line-2); --rt-gap: 3px; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); vertical-align: middle; }
|
|
802
|
+
.rt--heart { --rt-on: var(--hue-rose); }
|
|
803
|
+
.rt--sm { --rt-size: 17px; --rt-gap: 2px; gap: 7px; }
|
|
804
|
+
.rt--lg { --rt-size: 34px; --rt-gap: 5px; gap: 14px; }
|
|
805
|
+
.rt__stars { display: inline-flex; gap: var(--rt-gap); border-radius: 8px; outline: none; touch-action: none; cursor: pointer; -webkit-user-select: none; user-select: none; }
|
|
806
|
+
.rt.is-ro .rt__stars, .rt.is-disabled .rt__stars { cursor: default; touch-action: auto; }
|
|
807
|
+
.rt.is-disabled { opacity: .5; }
|
|
808
|
+
.rt__stars:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
|
|
809
|
+
.rt__s { --f: 0; position: relative; display: block; width: var(--rt-size); height: var(--rt-size); flex: none; }
|
|
810
|
+
.rt__s svg { display: block; width: 100% !important; height: 100% !important; }
|
|
811
|
+
.rt__s > svg { color: var(--rt-off); fill: color-mix(in oklab, var(--rt-off) 45%, transparent); }
|
|
812
|
+
.rt__f { position: absolute; inset: 0; color: var(--rt-on); clip-path: inset(-20% calc((1 - var(--f)) * 100%) -20% -20%); pointer-events: none; }
|
|
813
|
+
.rt__f svg { fill: currentColor; }
|
|
814
|
+
.rt.is-hover .rt__f { color: color-mix(in oklab, var(--rt-on) 78%, var(--card)); }
|
|
815
|
+
.rt__num { min-width: 1.6em; font-size: calc(var(--rt-size) * .62); font-weight: 750; font-variant-numeric: tabular-nums; }
|
|
816
|
+
.rt__word { display: inline-block; min-width: 4em; overflow: hidden; font-size: calc(max(13px, var(--rt-size) * .55)); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
|
|
817
|
+
.rt__word > span { display: inline-block; }
|
|
818
|
+
.rt__burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
|
|
819
|
+
.rt__burst i { position: absolute; left: -2.5px; top: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: var(--rt-on); }
|
|
820
|
+
.rt__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
821
|
+
|
|
822
|
+
/* ---------- carousel (carousel) ----------
|
|
823
|
+
Slide width comes from JS (--cr-w). Arrows sit over the sides; dots below. */
|
|
824
|
+
.cr { position: relative; min-width: 0; }
|
|
825
|
+
.cr__stage { position: relative; }
|
|
826
|
+
.cr__vp { position: relative; overflow: hidden; border-radius: var(--r-lg); outline: none; touch-action: pan-y; }
|
|
827
|
+
.cr__vp:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
|
|
828
|
+
.cr__track { display: flex; will-change: transform; -webkit-user-select: none; user-select: none; }
|
|
829
|
+
.cr.is-drag .cr__track { cursor: grabbing; }
|
|
830
|
+
.cr__slide { flex: none; width: var(--cr-w, 100%); min-width: 0; }
|
|
831
|
+
.cr__slide img { display: block; max-width: 100%; -webkit-user-drag: none; }
|
|
832
|
+
.cr__arrow { position: absolute; z-index: 2; top: calc(50% - 20px); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--card) 88%, transparent); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: opacity .2s, background-color .15s; }
|
|
833
|
+
.cr__arrow--prev { left: 10px; } .cr__arrow--next { right: 10px; }
|
|
834
|
+
.cr__arrow svg { width: 18px !important; height: 18px !important; }
|
|
835
|
+
.cr__arrow:hover:not(:disabled) { background: var(--card); }
|
|
836
|
+
.cr__arrow:disabled { opacity: 0; pointer-events: none; }
|
|
837
|
+
.cr__arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
838
|
+
.cr__arrow[hidden] { display: none; }
|
|
839
|
+
@media (hover: hover) { .cr__arrow:not(:focus-visible) { opacity: 0; } .cr:hover .cr__arrow:not(:disabled), .cr:focus-within .cr__arrow:not(:disabled) { opacity: 1; } }
|
|
840
|
+
.cr__bar { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 28px; margin-top: 12px; }
|
|
841
|
+
.cr__bar[hidden] { display: none; }
|
|
842
|
+
.cr__dots { display: flex; align-items: center; gap: 2px; }
|
|
843
|
+
.cr__dots[hidden] { display: none; }
|
|
844
|
+
.cr__dot { display: grid; place-items: center; height: 24px; padding: 0 3px; border-radius: 99px; }
|
|
845
|
+
.cr__dot i { position: relative; display: block; width: 7px; height: 7px; border-radius: 99px; overflow: hidden; background: var(--line-2); transition: width .35s cubic-bezier(.3, 1.4, .5, 1), background-color .25s; }
|
|
846
|
+
.cr__dot b { position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform: scaleX(0); transform-origin: left; }
|
|
847
|
+
.cr__dot:hover i { background: var(--muted); }
|
|
848
|
+
.cr__dot.is-on i { width: 24px; background: var(--accent); }
|
|
849
|
+
.cr:not(.is-paused) .cr__dot.is-on i { background: color-mix(in oklab, var(--accent) 30%, var(--line-2)); }
|
|
850
|
+
.cr__dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
|
|
851
|
+
.cr__count { font-size: 12.5px; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
852
|
+
.cr__play { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line-2); }
|
|
853
|
+
.cr__play:hover { color: var(--ink); }
|
|
854
|
+
.cr__play svg { width: 13px !important; height: 13px !important; }
|
|
855
|
+
.cr__play:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
856
|
+
.cr--focus .cr__slide { transform-origin: 50% 50%; }
|
|
857
|
+
.cr__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
858
|
+
@media (prefers-reduced-motion: reduce) { .cr__dot i { transition: none; } }
|
|
859
|
+
|
|
860
|
+
/* ---------- tree view (tree) ----------
|
|
861
|
+
--tv-indent: step per level · --tv-row: row height */
|
|
862
|
+
.tv { --tv-indent: 18px; --tv-row: 32px; position: relative; font-size: 13.5px; -webkit-user-select: none; user-select: none; }
|
|
863
|
+
.tv__pill { position: absolute; inset: 0; background: var(--accent-soft); opacity: 0; pointer-events: none; }
|
|
864
|
+
.tv__list, .tv__group { list-style: none; margin: 0; padding: 0; }
|
|
865
|
+
.tv__list { position: relative; }
|
|
866
|
+
.tv__group { position: relative; overflow: hidden; }
|
|
867
|
+
.tv__item { outline: none; }
|
|
868
|
+
.tv__row { display: flex; align-items: center; gap: 6px; height: var(--tv-row); margin-left: calc(var(--d) * var(--tv-indent)); padding: 0 10px 0 4px; border-radius: 9px; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
|
|
869
|
+
.tv__row:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
|
|
870
|
+
.tv__item.is-sel > .tv__row { color: var(--ink); font-weight: 600; }
|
|
871
|
+
.tv:not(.tv--multi) .tv__item.is-sel > .tv__row:hover { background: transparent; }
|
|
872
|
+
.tv--multi .tv__item.is-sel > .tv__row { background: var(--accent-soft); }
|
|
873
|
+
.tv__item:focus-visible > .tv__row { box-shadow: inset 0 0 0 2px var(--accent); }
|
|
874
|
+
.tv__item[aria-disabled="true"] > .tv__row { color: var(--faint); cursor: default; }
|
|
875
|
+
.tv__item[aria-disabled="true"] > .tv__row .tv__ic, .tv__item[aria-disabled="true"] > .tv__row .tv__ck { opacity: .5; }
|
|
876
|
+
.tv__tw { width: 18px; height: 18px; display: grid; place-items: center; flex: none; color: var(--muted); border-radius: 6px; transition: background .15s, color .15s; }
|
|
877
|
+
.tv__tw svg { width: 14px; height: 14px; stroke-width: 2.2; }
|
|
878
|
+
.tv__tw:not(:empty):hover { background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); }
|
|
879
|
+
.tv__ic { width: 18px; height: 18px; display: grid; place-items: center; flex: none; color: var(--muted); }
|
|
880
|
+
.tv__ic[hidden] { display: none; }
|
|
881
|
+
.tv__ic svg { width: 17px; height: 17px; }
|
|
882
|
+
.tv__item[aria-expanded] > .tv__row .tv__ic { color: var(--accent); }
|
|
883
|
+
.tv__item.is-sel > .tv__row .tv__ic { color: var(--accent); }
|
|
884
|
+
.tv__lb { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
885
|
+
.tv__bd { flex: none; font-size: 11px; font-weight: 650; line-height: 18px; color: var(--muted); background: var(--bg-2); border-radius: 99px; padding: 0 7px; }
|
|
886
|
+
.tv__ck { width: 18px; height: 18px; border-radius: 6px; }
|
|
887
|
+
.tv__ck svg { width: 12px; height: 12px; }
|
|
888
|
+
.tv__ck[aria-checked="mixed"]::after { width: 8px; }
|
|
889
|
+
.tv__hit { background: color-mix(in oklab, var(--warn) 32%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
|
|
890
|
+
.tv--lines .tv__group::before { content: ""; position: absolute; top: 2px; bottom: 6px; left: calc(var(--d) * var(--tv-indent) + 13px); width: 1px; background: var(--line); pointer-events: none; }
|
|
891
|
+
.tv--lines .tv__item:has(> .tv__row:hover) > .tv__group::before { background: var(--line-2); }
|
|
892
|
+
.tv__status { display: flex; align-items: center; gap: 8px; height: var(--tv-row); margin-left: calc(var(--d) * var(--tv-indent) + 28px); color: var(--muted); font-size: 12.5px; }
|
|
893
|
+
.tv--check .tv__status { margin-left: calc(var(--d) * var(--tv-indent) + 52px); }
|
|
894
|
+
.tv__status svg { width: 15px; height: 15px; color: var(--bad); flex: none; }
|
|
895
|
+
.tv__retry { font: inherit; font-weight: 650; color: var(--accent); background: none; border: 0; padding: 2px 6px; border-radius: 6px; cursor: pointer; }
|
|
896
|
+
.tv__retry:hover { background: var(--accent-soft); }
|
|
897
|
+
.tv__retry:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
898
|
+
.tv__spin { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: tv-spin .7s linear infinite; }
|
|
899
|
+
@keyframes tv-spin { to { transform: rotate(360deg); } }
|
|
900
|
+
.tv__row.is-new { animation: tv-new 1.4s ease-out; }
|
|
901
|
+
@keyframes tv-new { 0%, 35% { background: color-mix(in srgb, var(--accent) 22%, transparent); } }
|
|
902
|
+
.tv__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
903
|
+
@media (prefers-reduced-motion: reduce) { .tv__spin { animation-duration: 1.6s; } .tv__row.is-new { animation: none; } }
|
|
904
|
+
|
|
905
|
+
/* ---------- range slider (rangeSlider) ----------
|
|
906
|
+
Two thumbs on one track. Histogram height: --rs-hist (56px). Knob: --rs-knob (18px). */
|
|
907
|
+
.rs { --rs-hist: 56px; --rs-knob: 18px; --a: 0%; --b: 100%; position: relative; width: 100%; color: var(--ink); }
|
|
908
|
+
.rs__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
|
|
909
|
+
.rs__label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
|
|
910
|
+
.rs__out { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
911
|
+
.rs__body { position: relative; padding: 0 calc(var(--rs-knob) / 2); }
|
|
912
|
+
.rs__hist { display: flex; align-items: flex-end; gap: 2px; height: var(--rs-hist); margin-bottom: -10px; pointer-events: none; }
|
|
913
|
+
.rs__bar { flex: 1; min-width: 0; border-radius: 3px 3px 0 0; background: var(--line-2); opacity: .7; transition: background-color .3s, opacity .3s; }
|
|
914
|
+
.rs__bar.is-in { background: color-mix(in srgb, var(--accent) 50%, transparent); opacity: 1; }
|
|
915
|
+
.rs__rail { position: relative; height: 28px; touch-action: none; cursor: pointer; -webkit-user-select: none; user-select: none; }
|
|
916
|
+
.rs__track { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 99px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
|
|
917
|
+
.rs__fill { position: absolute; top: 0; bottom: 0; left: var(--a); right: calc(100% - var(--b)); border-radius: inherit; background: var(--accent); cursor: grab; }
|
|
918
|
+
.rs__fill::before { content: ""; position: absolute; left: 0; right: 0; top: -11px; bottom: -11px; }
|
|
919
|
+
.rs.is-grab, .rs.is-grab .rs__rail, .rs.is-grab .rs__fill { cursor: grabbing; }
|
|
920
|
+
.rs__thumb { position: absolute; top: 50%; left: var(--a); z-index: 1; width: var(--rs-knob); height: var(--rs-knob); translate: -50% -50%; border-radius: 50%; outline: none; cursor: grab; }
|
|
921
|
+
.rs__thumb[data-i="1"] { left: var(--b); }
|
|
922
|
+
.rs__thumb.is-top { z-index: 2; }
|
|
923
|
+
.rs__thumb::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; } /* a bigger target for fingers */
|
|
924
|
+
.rs__thumb.is-drag { cursor: grabbing; }
|
|
925
|
+
.rs__knob { position: absolute; inset: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(15, 18, 30, .08), 0 2px 6px rgba(15, 18, 30, .28), 0 0 0 0 var(--accent-soft); transition: box-shadow .25s; }
|
|
926
|
+
.rs__thumb:hover .rs__knob { box-shadow: 0 0 0 1px rgba(15, 18, 30, .08), 0 2px 6px rgba(15, 18, 30, .28), 0 0 0 4px var(--accent-soft); }
|
|
927
|
+
.rs__thumb:focus-visible .rs__knob { box-shadow: 0 0 0 1px rgba(15, 18, 30, .08), 0 2px 6px rgba(15, 18, 30, .28), 0 0 0 5px var(--accent-soft), 0 0 0 7px var(--accent); }
|
|
928
|
+
.rs__thumb.is-drag .rs__knob { box-shadow: 0 0 0 1px rgba(15, 18, 30, .08), 0 3px 10px rgba(15, 18, 30, .3), 0 0 0 7px var(--accent-soft); }
|
|
929
|
+
.rs__bubble { --bx: -50%; position: absolute; left: 50%; bottom: calc(100% + 12px); z-index: 3; padding: 4px 8px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none;
|
|
930
|
+
translate: var(--bx) 6px; scale: .7; opacity: 0; transform-origin: 50% 100%; transition: translate .25s cubic-bezier(.34, 1.56, .64, 1), scale .25s cubic-bezier(.34, 1.56, .64, 1), opacity .15s; }
|
|
931
|
+
.rs__bubble::after { content: ""; position: absolute; left: calc(var(--bx) * -1); bottom: -4px; width: 8px; height: 8px; margin-left: -4px; background: inherit; border-radius: 2px; rotate: 45deg; }
|
|
932
|
+
.rs__thumb.is-drag .rs__bubble, .rs__thumb:focus-visible .rs__bubble { translate: var(--bx) 0; scale: 1; opacity: 1; }
|
|
933
|
+
.rs.is-near .rs__thumb[data-i="0"] .rs__bubble { --bx: calc(-100% + 10px); }
|
|
934
|
+
.rs.is-near .rs__thumb[data-i="1"] .rs__bubble { --bx: -10px; }
|
|
935
|
+
.rs__marks { position: relative; height: 24px; margin-top: -4px; }
|
|
936
|
+
.rs__mark { position: absolute; top: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0 2px; translate: -50% 0; border: 0; background: none; color: var(--faint); font: inherit; cursor: pointer; }
|
|
937
|
+
.rs__mark i { width: 1.5px; height: 5px; border-radius: 1px; background: var(--line-2); transition: background-color .2s; }
|
|
938
|
+
.rs__mark small { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; transition: color .2s; }
|
|
939
|
+
.rs__mark.is-in { color: var(--ink-2); }
|
|
940
|
+
.rs__mark.is-in i { background: var(--accent); }
|
|
941
|
+
.rs__mark:hover small { color: var(--ink); }
|
|
942
|
+
.rs__mark.is-start { translate: calc(-1 * var(--rs-knob) / 2) 0; align-items: flex-start; }
|
|
943
|
+
.rs__mark.is-end { translate: calc(-100% + var(--rs-knob) / 2) 0; align-items: flex-end; }
|
|
944
|
+
.rs__mark.is-start i { margin-left: calc(var(--rs-knob) / 2 - 1px); }
|
|
945
|
+
.rs__mark.is-end i { margin-right: calc(var(--rs-knob) / 2 - 1px); }
|
|
946
|
+
.rs__inputs { display: flex; align-items: flex-end; gap: 10px; margin-top: 12px; }
|
|
947
|
+
.rs__in { flex: 1; min-width: 0; display: grid; gap: 4px; }
|
|
948
|
+
.rs__in small { font-size: 11.5px; font-weight: 600; color: var(--muted); }
|
|
949
|
+
.rs__num { font-variant-numeric: tabular-nums; }
|
|
950
|
+
.rs__to { flex: none; height: 34px; display: grid; place-items: center; font-size: 12.5px; color: var(--muted); }
|
|
951
|
+
.rs.is-disabled { opacity: .55; }
|
|
952
|
+
.rs.is-disabled .rs__rail, .rs.is-disabled .rs__fill, .rs.is-disabled .rs__thumb, .rs.is-disabled .rs__mark { cursor: not-allowed; }
|
|
953
|
+
.rs.is-still .rs__bubble, .rs.is-still .rs__bar, .rs.is-still .rs__knob { transition: none; }
|
|
954
|
+
@media (prefers-reduced-motion: reduce) { .rs__bubble, .rs__bar, .rs__knob, .rs__mark i, .rs__mark small { transition: none; } }
|
|
955
|
+
|
|
956
|
+
/* ---------- tags input (tagsInput) ----------
|
|
957
|
+
Suggestions list height: --ti-list-h (220px). */
|
|
958
|
+
.ti { position: relative; width: 100%; }
|
|
959
|
+
.ti__box { position: relative; }
|
|
960
|
+
.ti__field { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 40px; padding: 4px 6px 4px 5px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: text; transition: border-color .2s, box-shadow .2s; }
|
|
961
|
+
.ti__field:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--line-2)); }
|
|
962
|
+
.ti__field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
|
|
963
|
+
.ti.is-bad .ti__field { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
|
|
964
|
+
.ti.is-disabled .ti__field { opacity: .55; cursor: not-allowed; }
|
|
965
|
+
.ti__tags { display: contents; }
|
|
966
|
+
.ti__tag { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 28px; max-width: 100%; padding: 0 3px 0 9px; border-radius: 8px; background: var(--bg-2); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; outline: none; transition: background-color .2s, box-shadow .2s, color .2s; }
|
|
967
|
+
.ti__text { overflow: hidden; text-overflow: ellipsis; }
|
|
968
|
+
.ti__tag:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
|
|
969
|
+
.ti__tag.is-armed { background: var(--bad-soft); color: var(--bad); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--bad) 55%, transparent); }
|
|
970
|
+
.ti__tag.is-dup { background: var(--warn-soft); box-shadow: 0 0 0 1.5px var(--warn); }
|
|
971
|
+
.ti__tag.is-gone { pointer-events: none; }
|
|
972
|
+
.ti__x { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer; transition: background-color .15s, color .15s; }
|
|
973
|
+
.ti__x:hover { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
|
|
974
|
+
.ti__x svg { width: 12px !important; height: 12px !important; }
|
|
975
|
+
.ti.is-disabled .ti__x { display: none; }
|
|
976
|
+
.ti.is-disabled .ti__tag { padding-right: 9px; }
|
|
977
|
+
.ti__input { flex: 1 0 90px; min-width: 60px; height: 30px; padding: 0 6px; border: 0; outline: none; background: transparent; color: inherit; font: inherit; }
|
|
978
|
+
.ti__input::placeholder { color: var(--faint); }
|
|
979
|
+
.ti__input:disabled { cursor: not-allowed; }
|
|
980
|
+
.ti__count { margin-left: auto; padding: 0 5px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--faint); transition: color .2s; }
|
|
981
|
+
.ti.is-full .ti__count { color: var(--accent); }
|
|
982
|
+
.ti__count.is-pulse, .ti.is-full .ti__count.is-pulse { color: var(--bad); }
|
|
983
|
+
.ti__sug { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; max-height: var(--ti-list-h, 220px); overflow: auto; overscroll-behavior: contain; padding: 5px; border-radius: 13px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-3); }
|
|
984
|
+
.ti__opt { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 5px 10px 5px 8px; border-radius: 9px; font-size: 14px; cursor: pointer; user-select: none; -webkit-user-select: none; }
|
|
985
|
+
.ti__opt svg { width: 14px; height: 14px; flex: none; color: var(--muted); }
|
|
986
|
+
.ti__opt.is-active { background: var(--bg-2); }
|
|
987
|
+
.ti__opt.is-active svg { color: var(--accent); }
|
|
988
|
+
.ti__opt mark { background: none; color: var(--accent); font-weight: 700; }
|
|
989
|
+
.ti__msg { margin: 6px 2px 0; font-size: 12.5px; font-weight: 500; color: var(--muted); }
|
|
990
|
+
.ti__msg:empty { display: none; }
|
|
991
|
+
.ti.is-bad .ti__msg { color: var(--bad); }
|
|
992
|
+
.ti__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
993
|
+
@media (prefers-reduced-motion: reduce) { .ti__tag, .ti__count, .ti__field { transition: none; } }
|
|
994
|
+
|
|
995
|
+
/* ---------- pagination (pagination) ----------
|
|
996
|
+
--pgn-size: button size (36px; 32px when .is-compact). The current page sits on a stretchy pill (.pgn__pill). */
|
|
997
|
+
.pgn { --pgn-size: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 13.5px; color: var(--ink-2); }
|
|
998
|
+
.pgn.is-compact { --pgn-size: 32px; justify-content: center; gap: 8px 12px; }
|
|
999
|
+
.pgn--bare { justify-content: center; }
|
|
1000
|
+
.pgn__info { margin: 0; color: var(--muted); font-size: 13px; font-weight: 550; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
1001
|
+
.pgn__roll { display: inline-grid; overflow: hidden; vertical-align: bottom; }
|
|
1002
|
+
.pgn__roll > span { grid-area: 1 / 1; white-space: nowrap; }
|
|
1003
|
+
.pgn__size { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 550; white-space: nowrap; }
|
|
1004
|
+
.pgn__sel { display: block; width: 84px; }
|
|
1005
|
+
.pgn__bar { display: flex; align-items: center; gap: 6px; margin-left: auto; min-width: 0; }
|
|
1006
|
+
.pgn--bare .pgn__bar, .pgn.is-compact .pgn__bar { margin: 0 auto; }
|
|
1007
|
+
.pgn__arrow, .pgn__num { min-width: var(--pgn-size); height: var(--pgn-size); border-radius: 10px; display: inline-grid; place-items: center; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink-2); transition: background .15s, color .2s .05s; }
|
|
1008
|
+
.pgn__num { padding: 0 6px; }
|
|
1009
|
+
.pgn__arrow { flex: none; color: var(--ink); border: 1px solid var(--line-2); background: var(--card); }
|
|
1010
|
+
.pgn__arrow svg { width: 16px; height: 16px; }
|
|
1011
|
+
.pgn__arrow:hover:not([aria-disabled="true"]) { background: var(--card-2); }
|
|
1012
|
+
.pgn__num:hover:not([aria-current]) { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
|
|
1013
|
+
.pgn__arrow[aria-disabled="true"] { opacity: .4; cursor: default; }
|
|
1014
|
+
.pgn__arrow:focus-visible, .pgn__num:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
1015
|
+
.pgn__num[aria-current="page"] { color: var(--accent-ink); cursor: default; }
|
|
1016
|
+
.pgn__nums { position: relative; min-width: 0; }
|
|
1017
|
+
.pgn__pill { position: absolute; inset: 0; background: var(--accent); box-shadow: 0 6px 14px -8px var(--accent); opacity: 0; pointer-events: none; }
|
|
1018
|
+
.pgn__list { position: relative; display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
|
|
1019
|
+
.pgn__item { display: flex; }
|
|
1020
|
+
.pgn__gap { min-width: calc(var(--pgn-size) * .72); height: var(--pgn-size); align-items: center; justify-content: center; color: var(--faint); font-weight: 700; -webkit-user-select: none; user-select: none; }
|
|
1021
|
+
.pgn__ghosts { position: absolute; inset: 0; pointer-events: none; }
|
|
1022
|
+
.pgn__ghosts .pgn__item { position: absolute; }
|
|
1023
|
+
.pgn__of { padding: 0 8px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
1024
|
+
.pgn__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
1025
|
+
@media (prefers-reduced-motion: reduce) { .pgn__arrow, .pgn__num { transition: none; } }
|
|
1026
|
+
|
|
1027
|
+
/* ---------- breadcrumbs (breadcrumbs) ----------
|
|
1028
|
+
--bc-max: the longest a label gets before it is cut off with “…” (the whole text shows on hover). */
|
|
1029
|
+
.bc { --bc-max: 200px; min-width: 0; font-size: 13.5px; }
|
|
1030
|
+
.bc--sm { --bc-max: 160px; font-size: 12.5px; }
|
|
1031
|
+
.bc--lg { --bc-max: 240px; font-size: 15px; }
|
|
1032
|
+
.bc__list { position: relative; display: flex; align-items: center; flex-wrap: nowrap; list-style: none; margin: -3px; padding: 3px; overflow: hidden; }
|
|
1033
|
+
.bc.is-open .bc__list { flex-wrap: wrap; row-gap: 2px; }
|
|
1034
|
+
.bc__item { display: flex; align-items: center; flex: none; min-width: 0; white-space: nowrap; }
|
|
1035
|
+
.bc__item[hidden] { display: none; }
|
|
1036
|
+
.bc__item.is-last { flex: 0 1 auto; min-width: min(7.5em, 100%); }
|
|
1037
|
+
.bc__item.is-out { position: absolute; pointer-events: none; }
|
|
1038
|
+
.bc__sep { display: none; align-items: center; justify-content: center; flex: none; min-width: 20px; padding: 0 1px; color: var(--faint); font-weight: 500; }
|
|
1039
|
+
.bc__item:not([hidden]):not(.is-out) ~ .bc__item .bc__sep { display: inline-flex; }
|
|
1040
|
+
.bc__sep svg { width: 14px; height: 14px; }
|
|
1041
|
+
.bc--slash .bc__sep { font-size: 1.1em; }
|
|
1042
|
+
.bc--dot .bc__sep i { display: block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
|
|
1043
|
+
.bc__crumb { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; height: 28px; padding: 0 7px; border-radius: 8px; color: var(--muted); font-weight: 550; text-decoration: none; transition: background .15s, color .15s; }
|
|
1044
|
+
.bc--sm .bc__crumb { height: 24px; padding: 0 6px; gap: 5px; }
|
|
1045
|
+
.bc--lg .bc__crumb { height: 34px; padding: 0 9px; }
|
|
1046
|
+
.bc__crumb svg { width: 15px; height: 15px; flex: none; }
|
|
1047
|
+
.bc--lg .bc__crumb svg { width: 17px; height: 17px; }
|
|
1048
|
+
a.bc__crumb:hover, button.bc__crumb:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
|
|
1049
|
+
.bc__crumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
|
|
1050
|
+
.bc__lb { min-width: 0; max-width: var(--bc-max); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1051
|
+
.bc__cur { color: var(--ink); font-weight: 650; }
|
|
1052
|
+
.bc__cur:focus:not(:focus-visible) { outline: none; }
|
|
1053
|
+
.bc__dots { padding: 0 6px; }
|
|
1054
|
+
.bc__dots svg { width: 16px; height: 16px; }
|
|
1055
|
+
@media (prefers-reduced-motion: reduce) { .bc__crumb { transition: none; } }
|
|
1056
|
+
|
|
1057
|
+
/* ---------- combobox (combobox) ----------
|
|
1058
|
+
List height: --cb-list-h (300px). */
|
|
1059
|
+
.cb { position: relative; width: 100%; }
|
|
1060
|
+
.cb.is-open { z-index: 40; }
|
|
1061
|
+
.cb__label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
|
|
1062
|
+
.cb__field { position: relative; display: flex; align-items: center; gap: 2px; height: 40px; padding: 0 5px 0 0; border-radius: 11px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: text; transition: border-color .2s, box-shadow .2s; }
|
|
1063
|
+
.cb__field:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--line-2)); }
|
|
1064
|
+
.cb.is-focus .cb__field { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
|
|
1065
|
+
.cb.is-disabled .cb__field { opacity: .55; cursor: not-allowed; }
|
|
1066
|
+
.cb__lead { display: none; place-items: center; width: 20px; margin-left: 10px; flex: none; color: var(--accent); }
|
|
1067
|
+
.cb.has-lead .cb__lead { display: grid; }
|
|
1068
|
+
.cb__lead svg { width: 17px !important; height: 17px !important; }
|
|
1069
|
+
.cb__input { flex: 1; min-width: 0; height: 100%; padding: 0 6px 0 12px; border: 0; outline: none; background: transparent; color: inherit; font: inherit; font-size: 14px; text-overflow: ellipsis; caret-color: var(--ink); }
|
|
1070
|
+
.cb.has-lead .cb__input { padding-left: 7px; }
|
|
1071
|
+
.cb__input::placeholder { color: var(--faint); }
|
|
1072
|
+
.cb__input:disabled { cursor: not-allowed; }
|
|
1073
|
+
.cb.is-settling .cb__input { color: transparent; }
|
|
1074
|
+
.cb__ghost { position: absolute; left: 0; top: 0; z-index: 30; font-size: 14px; line-height: 1.3; white-space: nowrap; color: var(--ink); pointer-events: none; }
|
|
1075
|
+
.cb__side { display: flex; align-items: center; gap: 1px; color: var(--muted); }
|
|
1076
|
+
.cb__spin { display: none; width: 14px; height: 14px; margin: 0 6px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: cb-spin .7s linear infinite; }
|
|
1077
|
+
.cb.is-busy .cb__side .cb__spin, .cb__note .cb__spin { display: block; }
|
|
1078
|
+
@keyframes cb-spin { to { transform: rotate(360deg); } }
|
|
1079
|
+
.cb__clear, .cb__chev { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer; transition: background-color .15s, color .15s; }
|
|
1080
|
+
.cb__clear { display: none; }
|
|
1081
|
+
.cb.has-value:not(.is-disabled) .cb__clear { display: grid; }
|
|
1082
|
+
.cb__clear:hover, .cb__chev:hover { background: var(--bg-2); color: var(--ink); }
|
|
1083
|
+
.cb__clear svg { width: 14px !important; height: 14px !important; }
|
|
1084
|
+
.cb__chev svg { width: 16px !important; height: 16px !important; transition: transform .25s var(--ease, ease); }
|
|
1085
|
+
.cb.is-open .cb__chev svg { transform: rotate(180deg); }
|
|
1086
|
+
.cb.is-disabled .cb__chev { cursor: not-allowed; }
|
|
1087
|
+
.cb__pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; max-height: var(--cb-list-h, 300px); overflow: auto; overscroll-behavior: contain; padding: 5px; border-radius: 13px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-3); transform-origin: 50% 0; }
|
|
1088
|
+
.cb__pop[hidden] { display: none; }
|
|
1089
|
+
.cb.is-up .cb__pop { top: auto; bottom: calc(100% + 6px); transform-origin: 50% 100%; }
|
|
1090
|
+
.cb__pill { position: absolute; inset: 0; background: var(--bg-2); opacity: 0; pointer-events: none; }
|
|
1091
|
+
.cb__list { position: relative; transition: opacity .2s; }
|
|
1092
|
+
.cb__list.is-stale { opacity: .55; }
|
|
1093
|
+
.cb__group { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
|
|
1094
|
+
.cb__opt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 5px 10px; border-radius: 9px; font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; -webkit-user-select: none; }
|
|
1095
|
+
.cb__opt.is-active { color: var(--ink); }
|
|
1096
|
+
.cb__opt.is-on { color: var(--ink); font-weight: 600; }
|
|
1097
|
+
.cb__opt.is-off { opacity: .45; cursor: not-allowed; }
|
|
1098
|
+
.cb__ic { width: 18px; height: 18px; flex: none; display: grid; place-items: center; color: var(--muted); }
|
|
1099
|
+
.cb__ic svg { width: 16px !important; height: 16px !important; }
|
|
1100
|
+
.cb__opt.is-on .cb__ic, .cb__opt--custom .cb__ic { color: var(--accent); }
|
|
1101
|
+
.cb__opt--custom { color: var(--accent); font-weight: 600; }
|
|
1102
|
+
.cb__text { flex: 1; min-width: 0; display: grid; }
|
|
1103
|
+
.cb__name, .cb__text small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
|
1104
|
+
.cb__text small { font-size: 12px; font-weight: 500; color: var(--muted); }
|
|
1105
|
+
.cb__text mark { background: none; color: var(--accent); font-weight: 700; }
|
|
1106
|
+
.cb__tick { width: 18px; height: 18px; flex: none; display: grid; place-items: center; color: var(--accent); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .25s cubic-bezier(.34, 1.56, .64, 1); }
|
|
1107
|
+
.cb__tick svg { width: 15px !important; height: 15px !important; stroke-width: 2.4; }
|
|
1108
|
+
.cb__opt.is-on .cb__tick { opacity: 1; transform: none; }
|
|
1109
|
+
.cb__note { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; font-size: 13px; color: var(--muted); text-align: center; }
|
|
1110
|
+
.cb__note[hidden] { display: none; }
|
|
1111
|
+
.cb__list:not(:empty) + .cb__note { padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
|
|
1112
|
+
.cb__note--error { color: var(--bad); }
|
|
1113
|
+
.cb__note--error svg { width: 15px; height: 15px; flex: none; }
|
|
1114
|
+
.cb__retry { font: inherit; font-weight: 650; color: var(--accent); background: none; border: 0; padding: 2px 6px; border-radius: 6px; cursor: pointer; }
|
|
1115
|
+
.cb__retry:hover { background: var(--accent-soft); }
|
|
1116
|
+
.cb__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
1117
|
+
@media (forced-colors: active) { .cb__opt.is-active { outline: 2px solid Highlight; } }
|
|
1118
|
+
@media (prefers-reduced-motion: reduce) { .cb__spin { animation-duration: 1.6s; } .cb__chev svg, .cb__tick { transition: none; } }
|
|
1119
|
+
|
|
1120
|
+
/* ---------- file drop zone (fileDrop) ----------
|
|
1121
|
+
Zone height: --fd-zone-h (160px; 56px when compact). */
|
|
1122
|
+
.fd { position: relative; width: 100%; }
|
|
1123
|
+
.fd__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
|
|
1124
|
+
.fd__zone { position: relative; width: 100%; min-height: var(--fd-zone-h, 160px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); background: var(--card); color: var(--muted); font: inherit; text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .25s, color .2s; }
|
|
1125
|
+
.fd__zone:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); background: color-mix(in srgb, var(--accent-soft) 45%, var(--card)); }
|
|
1126
|
+
.fd__zone:focus-visible { outline: none; border-style: solid; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
|
|
1127
|
+
.fd.is-page .fd__zone { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 55%, var(--card)); }
|
|
1128
|
+
.fd.is-over .fd__zone { border-style: solid; border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent), 0 14px 34px -14px var(--accent); }
|
|
1129
|
+
.fd__ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); color: var(--accent); transition: background-color .2s, color .2s; }
|
|
1130
|
+
.fd__ico svg { width: 22px !important; height: 22px !important; }
|
|
1131
|
+
.fd.is-over .fd__ico, .fd.is-page .fd__ico { background: var(--accent); color: var(--accent-ink); }
|
|
1132
|
+
.fd__txt { display: grid; gap: 3px; }
|
|
1133
|
+
.fd__title { font-size: 14px; font-weight: 700; color: var(--ink); }
|
|
1134
|
+
.fd__browse { font-size: 13px; }
|
|
1135
|
+
.fd__hint { margin-top: 3px; font-size: 12px; color: var(--faint); }
|
|
1136
|
+
.fd__words { display: grid; }
|
|
1137
|
+
.fd__words > * { grid-area: 1 / 1; }
|
|
1138
|
+
.fd__txt { transition: opacity .2s; }
|
|
1139
|
+
.fd__drop { align-self: center; font-size: 14px; font-weight: 700; color: var(--accent); opacity: 0; transition: opacity .2s; }
|
|
1140
|
+
.fd.is-over .fd__txt { opacity: 0; }
|
|
1141
|
+
.fd.is-over .fd__drop { opacity: 1; }
|
|
1142
|
+
.fd--compact .fd__zone { --fd-zone-h: 56px; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 8px 14px 8px 10px; border-radius: var(--r); text-align: left; }
|
|
1143
|
+
.fd--compact .fd__ico { width: 36px; height: 36px; border-radius: 10px; }
|
|
1144
|
+
.fd--compact .fd__ico svg { width: 18px !important; height: 18px !important; }
|
|
1145
|
+
.fd--compact .fd__title { font-size: 13.5px; }
|
|
1146
|
+
.fd--compact .fd__hint { margin-top: 0; }
|
|
1147
|
+
|
|
1148
|
+
.fd__list { list-style: none; margin: 0; padding: 0; }
|
|
1149
|
+
.fd__row { margin-top: 8px; }
|
|
1150
|
+
.fd--compact .fd__row { margin-top: 6px; }
|
|
1151
|
+
.fd__card { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); transition: border-color .2s, background-color .2s; }
|
|
1152
|
+
.fd--compact .fd__card { gap: 10px; padding: 7px 8px; }
|
|
1153
|
+
.fd__row.is-error .fd__card { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); background: color-mix(in srgb, var(--bad-soft) 55%, var(--card)); }
|
|
1154
|
+
.fd__thumb { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: var(--bg-2); color: var(--muted); }
|
|
1155
|
+
.fd--compact .fd__thumb { width: 32px; height: 32px; border-radius: 8px; }
|
|
1156
|
+
.fd__thumb svg { width: 19px !important; height: 19px !important; }
|
|
1157
|
+
.fd__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
|
|
1158
|
+
.fd__thumb--image { color: var(--accent); }
|
|
1159
|
+
.fd__thumb--pdf { background: var(--bad-soft); color: var(--bad); }
|
|
1160
|
+
.fd__thumb--sheet { background: var(--good-soft); color: var(--good); }
|
|
1161
|
+
.fd__thumb--archive { background: var(--warn-soft); color: var(--warn); }
|
|
1162
|
+
.fd__thumb--media, .fd__thumb--image:not(:has(img)) { background: var(--accent-soft); color: var(--accent); }
|
|
1163
|
+
.fd__ext { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); padding: 0 3px; border-radius: 3px; background: var(--muted); color: var(--card); font-size: 7.5px; font-weight: 800; line-height: 1.35; letter-spacing: .03em; }
|
|
1164
|
+
.fd__thumb--pdf .fd__ext { background: var(--bad); }
|
|
1165
|
+
.fd__thumb--sheet .fd__ext { background: var(--good); }
|
|
1166
|
+
.fd__thumb--archive .fd__ext { background: var(--warn); }
|
|
1167
|
+
.fd__thumb--media .fd__ext, .fd__thumb--image .fd__ext { background: var(--accent); color: var(--accent-ink); }
|
|
1168
|
+
.fd__thumb:has(.fd__ext) svg { margin-top: -7px; }
|
|
1169
|
+
.fd--compact .fd__ext { display: none; }
|
|
1170
|
+
.fd--compact .fd__thumb svg { margin-top: 0; }
|
|
1171
|
+
.fd__meta { flex: 1; min-width: 0; display: grid; gap: 3px; }
|
|
1172
|
+
.fd__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; font-weight: 600; color: var(--ink); }
|
|
1173
|
+
.fd__sub { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
1174
|
+
.fd__state:empty { display: none; }
|
|
1175
|
+
.fd__state::before { content: "·"; margin-right: 8px; color: var(--faint); }
|
|
1176
|
+
.fd__row.is-done .fd__state { color: var(--good); }
|
|
1177
|
+
.fd__row.is-error .fd__state { color: var(--bad); font-weight: 600; }
|
|
1178
|
+
.fd__bar { position: relative; display: block; height: 4px; margin-top: 3px; overflow: hidden; border-radius: 99px; background: var(--bg-2); transition: opacity .3s .5s; }
|
|
1179
|
+
.fd__bar i { position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
|
|
1180
|
+
.fd__row.is-done .fd__bar { opacity: 0; }
|
|
1181
|
+
.fd__row.is-done .fd__bar i { background: var(--good); }
|
|
1182
|
+
.fd__row.is-error .fd__bar i { background: var(--bad); }
|
|
1183
|
+
.fd--local .fd__bar, .fd__row.is-rejected .fd__bar { display: none; }
|
|
1184
|
+
.fd__acts { display: flex; align-items: center; gap: 2px; flex: none; }
|
|
1185
|
+
.fd__ok { width: 24px; height: 24px; display: none; place-items: center; border-radius: 50%; background: var(--good); color: #fff; margin-right: 4px; }
|
|
1186
|
+
.fd__ok svg { width: 14px !important; height: 14px !important; stroke-width: 2.6; }
|
|
1187
|
+
.fd:not(.fd--local) .fd__row.is-done .fd__ok { display: grid; }
|
|
1188
|
+
.fd__btn { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; display: none; place-items: center; background: transparent; color: var(--muted); cursor: pointer; transition: background-color .15s, color .15s; }
|
|
1189
|
+
.fd__btn svg { width: 16px !important; height: 16px !important; }
|
|
1190
|
+
.fd__btn:hover { background: var(--bg-2); color: var(--ink); }
|
|
1191
|
+
.fd__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
1192
|
+
.fd__remove:hover, .fd__cancel:hover { background: var(--bad-soft); color: var(--bad); }
|
|
1193
|
+
.fd__retry:hover { background: var(--accent-soft); color: var(--accent); }
|
|
1194
|
+
.fd__row.is-uploading .fd__cancel { display: grid; }
|
|
1195
|
+
.fd__row.is-queued .fd__remove, .fd__row.is-done .fd__remove, .fd__row.is-error .fd__remove { display: grid; }
|
|
1196
|
+
.fd__row.is-error:not(.is-rejected) .fd__retry { display: grid; }
|
|
1197
|
+
.fd__row.is-gone { pointer-events: none; }
|
|
1198
|
+
.fd__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
1199
|
+
@media (max-width: 480px) { .fd__zone { padding: 16px 12px; } .fd__card { gap: 10px; } }
|
|
1200
|
+
@media (prefers-reduced-motion: reduce) { .fd__zone, .fd__bar, .fd__ico, .fd__txt, .fd__drop { transition: none; } }
|
|
1201
|
+
|
|
1202
|
+
/* ---------- skeleton (skeleton) ----------
|
|
1203
|
+
--sk-base: block colour · --sk-hi: the sweeping light · --sk-speed: one sweep · --sk-gap: space between rows
|
|
1204
|
+
--sk-card: smallest card width (look: 'card'). The light is one fixed gradient for the whole screen,
|
|
1205
|
+
so it runs across every block at once (where background-attachment: fixed is ignored, each block sweeps on its own). */
|
|
1206
|
+
.sk { --sk-base: color-mix(in oklab, var(--ink) 8%, transparent); --sk-hi: color-mix(in oklab, var(--card) 72%, transparent); --sk-speed: 2s; --sk-gap: 14px; --sk-card: 180px; position: relative; min-width: 0; }
|
|
1207
|
+
[data-theme="dark"] .sk { --sk-base: color-mix(in oklab, var(--ink) 9%, transparent); --sk-hi: color-mix(in oklab, var(--ink) 8%, transparent); }
|
|
1208
|
+
.sk.is-moving { overflow: clip; }
|
|
1209
|
+
.sk .sk__real[hidden], .sk .sk__ph[hidden] { display: none; }
|
|
1210
|
+
.sk__ph { display: flex; flex-direction: column; gap: var(--sk-gap); pointer-events: none; -webkit-user-select: none; user-select: none; }
|
|
1211
|
+
.sk__ph.is-over { position: absolute; inset: 0; overflow: hidden; }
|
|
1212
|
+
.sk__b { display: block; flex: none; width: var(--w, 100%); height: 10px; border-radius: 6px; background-color: var(--sk-base); }
|
|
1213
|
+
/* the sweep: off with reduced motion or shimmer: false (.sk--still) — then the blocks stay still, no pulse */
|
|
1214
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
1215
|
+
.sk:not(.sk--still) .sk__b { background-image: linear-gradient(90deg, transparent 15%, var(--sk-hi) 50%, transparent 85%); background-size: 45vw 100%; background-repeat: no-repeat; background-attachment: fixed; animation: sk-sweep var(--sk-speed) linear infinite; }
|
|
1216
|
+
}
|
|
1217
|
+
@keyframes sk-sweep { from { background-position: -45vw 0; } to { background-position: 145vw 0; } }
|
|
1218
|
+
.sk__b--line { border-radius: 99px; }
|
|
1219
|
+
.sk__b--strong { height: 12px; }
|
|
1220
|
+
.sk__b--head { height: 8px; }
|
|
1221
|
+
.sk__b--title { height: 20px; border-radius: 8px; }
|
|
1222
|
+
.sk__b--circle { width: 36px; height: 36px; border-radius: 50%; }
|
|
1223
|
+
.sk__b--circle.sk__b--sm { width: 26px; height: 26px; }
|
|
1224
|
+
.sk__b--thumb { width: 44px; height: 44px; border-radius: var(--r-sm); }
|
|
1225
|
+
.sk__b--pill { width: 58px; height: 22px; border-radius: 99px; }
|
|
1226
|
+
.sk__b--media { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: var(--r-sm); }
|
|
1227
|
+
.sk__lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
|
|
1228
|
+
.sk__row { display: flex; align-items: center; gap: 12px; min-height: 44px; }
|
|
1229
|
+
.sk__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--sk-card)), 1fr)); gap: var(--sk-gap); }
|
|
1230
|
+
.sk__card { display: flex; flex-direction: column; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
|
|
1231
|
+
.sk__card .sk__lines { flex: none; }
|
|
1232
|
+
.sk__by { display: flex; align-items: center; gap: 10px; }
|
|
1233
|
+
.sk__by > .sk__b--line { flex: 1; max-width: var(--w); }
|
|
1234
|
+
.sk__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 4px; }
|
|
1235
|
+
.sk__para { display: flex; flex-direction: column; gap: 10px; }
|
|
1236
|
+
.sk--table .sk__ph { gap: 0; }
|
|
1237
|
+
.sk__tr { display: grid; align-items: center; gap: 16px; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--line); }
|
|
1238
|
+
.sk__tr--head { min-height: 38px; }
|
|
1239
|
+
.sk__tr:last-child { border-bottom: 0; }
|
|
1240
|
+
.sk__cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
|
|
1241
|
+
.sk__cell > .sk__b--line { flex: 1; max-width: var(--w); }
|
|
1242
|
+
.sk--custom .sk__ph { position: absolute; inset: 0; display: block; overflow: hidden; }
|
|
1243
|
+
.sk--custom .sk__ph > .sk__b { position: absolute; }
|
|
1244
|
+
.sk--custom.is-loading [data-sk] { visibility: hidden; }
|
|
1245
|
+
.sk__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
1246
|
+
@media (max-width: 420px) { .sk__row > .sk__b--pill { display: none; } }
|
|
1247
|
+
|
|
1248
|
+
/* ---------- alert / banner (alert) ----------
|
|
1249
|
+
Tone colours: --al-c (main), --al-soft (background of soft / banner), --al-on (text on solid).
|
|
1250
|
+
.al is the part whose height animates; .al__box is what you see. */
|
|
1251
|
+
.al { --al-c: var(--accent); --al-soft: var(--accent-soft); --al-on: var(--accent-ink); position: relative; min-width: 0; }
|
|
1252
|
+
.al--good { --al-c: var(--good); --al-soft: var(--good-soft); --al-on: #fff; }
|
|
1253
|
+
.al--warn { --al-c: var(--warn); --al-soft: var(--warn-soft); --al-on: #1c1407; }
|
|
1254
|
+
.al--bad { --al-c: var(--bad); --al-soft: var(--bad-soft); --al-on: #fff; }
|
|
1255
|
+
[data-theme="dark"] .al--good, [data-theme="dark"] .al--bad { --al-on: var(--bg); }
|
|
1256
|
+
.al.is-moving { overflow: clip; }
|
|
1257
|
+
.al [hidden] { display: none !important; }
|
|
1258
|
+
.al__box { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; column-gap: 12px; padding: 13px 14px 13px 14px; border-radius: var(--r); border: 1px solid color-mix(in oklab, var(--al-c) 24%, transparent); background: var(--al-soft); color: var(--ink-2); font-size: 13.5px; line-height: 1.5; transition: background-color .35s, border-color .35s, color .35s, box-shadow .35s; }
|
|
1259
|
+
.al__ic { grid-column: 1; grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--al-c) 16%, transparent); color: var(--al-c); transition: background-color .35s, color .35s; }
|
|
1260
|
+
.al__ic svg.ico { width: 17px; height: 17px; stroke-width: 2; }
|
|
1261
|
+
.al__txt { grid-column: 2; min-width: 0; padding-top: 4px; overflow-wrap: anywhere; }
|
|
1262
|
+
.al__title { display: block; font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--ink); transition: color .35s; }
|
|
1263
|
+
.al__body { color: inherit; }
|
|
1264
|
+
.al__title + .al__body { margin-top: 2px; }
|
|
1265
|
+
.al__body p { margin: 0; }
|
|
1266
|
+
.al__body p + p { margin-top: 6px; }
|
|
1267
|
+
.al__body a { color: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
|
|
1268
|
+
.al__acts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
|
|
1269
|
+
.al__act { background: color-mix(in oklab, var(--card) 75%, transparent); }
|
|
1270
|
+
.al__act--primary { background: var(--al-c); border-color: transparent; color: var(--al-on); }
|
|
1271
|
+
.al__act--primary:hover { background: color-mix(in oklab, var(--al-c) 88%, var(--ink)); }
|
|
1272
|
+
.al__act[aria-busy="true"] { opacity: .6; cursor: progress; }
|
|
1273
|
+
.al__x { grid-column: 3; grid-row: 1; width: 30px; height: 30px; margin: 0 -4px 0 0; border: 0; border-radius: 9px; display: grid; place-items: center; background: none; color: var(--muted); cursor: pointer; transition: background-color .15s, color .15s; }
|
|
1274
|
+
.al__x:hover { background: color-mix(in oklab, var(--al-c) 14%, transparent); color: var(--ink); }
|
|
1275
|
+
.al__x svg.ico { width: 16px; height: 16px; }
|
|
1276
|
+
.al__x:focus-visible, .al__act:focus-visible { outline: 2px solid var(--al-c); outline-offset: 2px; }
|
|
1277
|
+
.al--noicon .al__box { grid-template-columns: minmax(0, 1fr) auto; }
|
|
1278
|
+
.al--noicon .al__txt, .al--noicon .al__acts { grid-column: 1; }
|
|
1279
|
+
.al--noicon .al__x { grid-column: 2; }
|
|
1280
|
+
.al--noicon .al__txt { padding-top: 0; }
|
|
1281
|
+
.al .al__box > .al__ghost { position: absolute; grid-column: auto; grid-row: auto; margin: 0; pointer-events: none; }
|
|
1282
|
+
/* outline: a card with a coloured edge */
|
|
1283
|
+
.al--outline .al__box { background: var(--card); border-color: color-mix(in oklab, var(--al-c) 45%, var(--line)); box-shadow: inset 3px 0 0 var(--al-c), var(--shadow-1); }
|
|
1284
|
+
.al--outline .al__act { background: var(--card); }
|
|
1285
|
+
.al--outline .al__act--primary { background: var(--al-c); }
|
|
1286
|
+
/* solid: filled with the tone colour */
|
|
1287
|
+
.al--solid .al__box { background: var(--al-c); border-color: transparent; color: var(--al-on); }
|
|
1288
|
+
.al--solid .al__title { color: var(--al-on); }
|
|
1289
|
+
.al--solid .al__ic { background: color-mix(in oklab, var(--al-on) 18%, transparent); color: var(--al-on); }
|
|
1290
|
+
.al--solid .al__x { color: var(--al-on); }
|
|
1291
|
+
.al--solid .al__x:hover { background: color-mix(in oklab, var(--al-on) 16%, transparent); color: var(--al-on); }
|
|
1292
|
+
.al--solid .al__act { background: color-mix(in oklab, var(--al-on) 14%, transparent); border-color: color-mix(in oklab, var(--al-on) 30%, transparent); color: var(--al-on); }
|
|
1293
|
+
.al--solid .al__act--primary { background: var(--al-on); border-color: transparent; color: var(--al-c); }
|
|
1294
|
+
.al--solid .al__x:focus-visible, .al--solid .al__act:focus-visible { outline-color: var(--al-on); }
|
|
1295
|
+
/* banner: a full-width bar, text on one line when it fits */
|
|
1296
|
+
.al--banner .al__box { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; padding: 9px 52px; border-width: 0 0 1px; border-radius: 0; font-size: 13px; }
|
|
1297
|
+
.al--banner .al__ic { width: 24px; height: 24px; }
|
|
1298
|
+
.al--banner .al__ic svg.ico { width: 14px; height: 14px; }
|
|
1299
|
+
.al--banner .al__txt { padding-top: 0; }
|
|
1300
|
+
.al--banner .al__title { display: inline; font-size: 13px; }
|
|
1301
|
+
.al--banner .al__title + .al__body { margin: 0 0 0 4px; }
|
|
1302
|
+
.al--banner .al__body, .al--banner .al__body p { display: inline; }
|
|
1303
|
+
.al--banner .al__acts { margin: 0; gap: 6px; }
|
|
1304
|
+
.al--banner .al__act { height: 28px; padding: 0 10px; }
|
|
1305
|
+
.al--banner .al__x { position: absolute; right: 10px; top: 50%; margin: -15px 0 0; }
|
|
1306
|
+
.al--banner .al__ghost { padding-top: 0; }
|
|
1307
|
+
@media (max-width: 560px) { .al--banner .al__box { justify-content: flex-start; padding: 9px 48px 9px 14px; } }
|
|
1308
|
+
.al--still .al__box, .al--still .al__ic, .al--still .al__title { transition: none; }
|
|
1309
|
+
@media (prefers-reduced-motion: reduce) { .al__box, .al__ic, .al__title { transition: none; } }
|
|
1310
|
+
|
|
1311
|
+
/* ---------- line / area chart (lineChart) ----------
|
|
1312
|
+
Each series sets --c (its colour). Axis text uses --fs-xs. */
|
|
1313
|
+
.lc { position: relative; display: grid; gap: 12px; min-width: 0; font-size: var(--fs-sm); }
|
|
1314
|
+
.lc__legend { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
1315
|
+
.lc__key { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px 0 9px; border-radius: var(--r-full); border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
|
|
1316
|
+
.lc__key i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; transition: background .2s, box-shadow .2s; }
|
|
1317
|
+
.lc__key:hover { border-color: var(--line-2); }
|
|
1318
|
+
.lc__key[aria-pressed="false"] { color: var(--faint); background: transparent; border-style: dashed; }
|
|
1319
|
+
.lc__key[aria-pressed="false"] i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
|
|
1320
|
+
.lc__key:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
1321
|
+
.lc__plot { position: relative; min-width: 0; border-radius: var(--r-sm); outline: none; touch-action: pan-y; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
|
|
1322
|
+
.lc__plot:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
|
|
1323
|
+
.lc__svg { display: block; width: 100%; overflow: hidden; }
|
|
1324
|
+
.lc__svg text { font-family: inherit; font-size: var(--fs-xs); font-weight: 500; fill: var(--muted); font-variant-numeric: tabular-nums; }
|
|
1325
|
+
.lc__gl { stroke: var(--line); stroke-width: 1; }
|
|
1326
|
+
.lc--nogrid .lc__gl { display: none; }
|
|
1327
|
+
.lc__base { stroke: var(--line-2); stroke-width: 1; }
|
|
1328
|
+
.lc__s { pointer-events: none; }
|
|
1329
|
+
.lc__line { fill: none; stroke: var(--c); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke-opacity .2s; }
|
|
1330
|
+
.lc__area { stroke: none; transition: fill-opacity .2s; }
|
|
1331
|
+
.lc__g0 { stop-color: var(--c); stop-opacity: .26; }
|
|
1332
|
+
.lc__g1 { stop-color: var(--c); stop-opacity: 0; }
|
|
1333
|
+
.lc--stacked .lc__area { fill: var(--c); fill-opacity: .2; }
|
|
1334
|
+
.lc__dot { fill: var(--card); stroke: var(--c); stroke-width: 2; vector-effect: non-scaling-stroke; }
|
|
1335
|
+
.lc__s.is-dim .lc__line { stroke-opacity: .25; }
|
|
1336
|
+
.lc__s.is-dim .lc__area { fill-opacity: .06; }
|
|
1337
|
+
.lc__s.is-dim .lc__dot { opacity: .3; }
|
|
1338
|
+
.lc__cross { stroke: var(--ink); stroke-opacity: .3; stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; pointer-events: none; vector-effect: non-scaling-stroke; }
|
|
1339
|
+
.lc__hd { fill: var(--c); stroke: var(--card); stroke-width: 2.5; pointer-events: none; vector-effect: non-scaling-stroke; }
|
|
1340
|
+
.lc__tip { position: absolute; left: 0; top: 0; z-index: 2; display: grid; gap: 1px; min-width: 132px; max-width: min(240px, 80%); padding: 9px 11px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-2); font-size: var(--fs-sm); line-height: 1.6; pointer-events: none; opacity: 0; visibility: hidden; }
|
|
1341
|
+
.lc__tl { font-weight: 700; color: var(--ink); margin-bottom: 3px; }
|
|
1342
|
+
.lc__tr { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
|
|
1343
|
+
.lc__tr i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
|
|
1344
|
+
.lc__tr span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1345
|
+
.lc__tr b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
1346
|
+
.lc__tt { margin-top: 3px; padding-top: 4px; border-top: 1px solid var(--line); }
|
|
1347
|
+
.lc__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
1348
|
+
@media (prefers-reduced-motion: reduce) { .lc__key, .lc__key i, .lc__line, .lc__area { transition: none; } }
|
|
1349
|
+
|
|
1350
|
+
/* ---------- virtual list (virtualList) ----------
|
|
1351
|
+
--vl-h: viewport height (set by the height option; otherwise the list fills its parent)
|
|
1352
|
+
--vl-row: row height when rows are fixed. Rows are flex rows; style what render() returns. */
|
|
1353
|
+
.vl { position: relative; display: flex; flex-direction: column; height: var(--vl-h, 100%); min-height: 0; min-width: 0; }
|
|
1354
|
+
.vl__vp { position: relative; flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; outline: none; border-radius: inherit; }
|
|
1355
|
+
.vl__vp:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
|
|
1356
|
+
.vl--select .vl__vp:focus-visible { box-shadow: none; }
|
|
1357
|
+
.vl__sizer { position: relative; width: 100%; contain: layout style; }
|
|
1358
|
+
.vl__row { position: absolute; top: 0; left: 0; right: 0; box-sizing: border-box; display: flex; align-items: center; gap: 12px; height: var(--vl-row, auto); padding: 0 14px; color: var(--ink-2); translate: 0 var(--vl-rise, 0px); transition: background .15s; }
|
|
1359
|
+
.vl--auto .vl__row { padding-block: 10px; }
|
|
1360
|
+
.vl__row:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
|
|
1361
|
+
.vl--select .vl__row { cursor: pointer; -webkit-user-select: none; user-select: none; }
|
|
1362
|
+
.vl__row.is-sel { color: var(--ink); }
|
|
1363
|
+
.vl__row.is-sel::before { content: ""; position: absolute; left: 4px; top: 50%; width: 3px; height: min(24px, 60%); translate: 0 -50%; border-radius: 3px; background: var(--accent); }
|
|
1364
|
+
.vl__hl { position: absolute; top: 0; left: 4px; right: 4px; height: 0; border-radius: var(--r-xs); background: var(--accent-soft); opacity: 0; pointer-events: none; }
|
|
1365
|
+
.vl__vp:focus-visible .vl__hl { box-shadow: inset 0 0 0 2px var(--accent); }
|
|
1366
|
+
.vl__empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px; text-align: center; color: var(--muted); font-size: var(--fs-sm); pointer-events: none; }
|
|
1367
|
+
.vl__empty[hidden] { display: none; }
|
|
1368
|
+
.vl__empty span { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2); }
|
|
1369
|
+
.vl__empty svg { width: 20px; height: 20px; }
|
|
1370
|
+
.vl__empty b { color: var(--ink); font-weight: 650; }
|
|
1371
|
+
.vl__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
1372
|
+
@media (prefers-reduced-motion: reduce) { .vl__row { transition: none; } }
|
|
1373
|
+
|
|
1374
|
+
/* ---------- month calendar (calendar) ---------- */
|
|
1375
|
+
.cal { --cal-head: 32px; --cal-lane: 23px; --cal-more: 20px; --cal-max: 3; position: relative; min-width: 0; color: var(--ink); font-variant-numeric: tabular-nums; container: cal / inline-size; }
|
|
1376
|
+
.cal__top { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
|
|
1377
|
+
.cal__title { position: relative; flex: 1; min-width: 0; height: 30px; overflow: hidden; font-weight: 750; font-size: var(--fs-md); }
|
|
1378
|
+
.cal__title > span { display: block; line-height: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; }
|
|
1379
|
+
.cal__title > span.is-old { position: absolute; inset: 0; }
|
|
1380
|
+
.cal__top .btn { margin-right: 4px; }
|
|
1381
|
+
.cal__grid { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); overflow: hidden; overflow: clip; }
|
|
1382
|
+
.cal__wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--bg-2); }
|
|
1383
|
+
.cal__wd { padding: 8px 9px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; }
|
|
1384
|
+
.cal__wd-s { display: none; }
|
|
1385
|
+
.cal__vp { position: relative; }
|
|
1386
|
+
.cal__vp.is-sliding { overflow: hidden; overflow: clip; }
|
|
1387
|
+
.cal__weeks.is-leaving { position: absolute; inset: 0 0 auto; pointer-events: none; }
|
|
1388
|
+
.cal__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
|
|
1389
|
+
.cal__week + .cal__week { border-top: 1px solid var(--line); }
|
|
1390
|
+
.cal__cell { position: relative; min-width: 0; min-height: calc(var(--cal-head) + var(--cal-max) * var(--cal-lane) + var(--cal-more) + 4px); box-shadow: inset 1px 0 var(--line); cursor: pointer; transition: background .15s; -webkit-tap-highlight-color: transparent; }
|
|
1391
|
+
.cal__cell:first-child { box-shadow: none; }
|
|
1392
|
+
.cal__cell:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
|
|
1393
|
+
.cal__cell.is-out { background: color-mix(in srgb, var(--bg-2) 55%, transparent); }
|
|
1394
|
+
.cal__cell.is-out .cal__date { color: var(--faint); }
|
|
1395
|
+
.cal__cell.is-sel { background: color-mix(in srgb, var(--accent) 8%, transparent); box-shadow: inset 0 0 0 2px var(--accent); }
|
|
1396
|
+
.cal__cell:has(.cal__date:focus-visible) { box-shadow: inset 0 0 0 2px var(--accent); }
|
|
1397
|
+
.cal__cell.is-drop { background: color-mix(in srgb, var(--accent) 14%, transparent); }
|
|
1398
|
+
.cal.is-dragging .cal__cell:hover:not(.is-drop) { background: none; }
|
|
1399
|
+
.cal__date { position: absolute; top: 5px; left: 5px; display: inline-flex; align-items: center; gap: 4px; height: 24px; min-width: 24px; padding: 0 7px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 650 12px/1 var(--font); white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
|
|
1400
|
+
.cal__date:hover { background: var(--bg-2); color: var(--ink); }
|
|
1401
|
+
.cal__date:focus-visible { outline: none; }
|
|
1402
|
+
.cal__mo { font-weight: 600; color: var(--muted); }
|
|
1403
|
+
.cal__cell.is-today .cal__date { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
|
|
1404
|
+
.cal__cell.is-today .cal__mo { color: inherit; opacity: .8; }
|
|
1405
|
+
.cal__ring { position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--accent); pointer-events: none; }
|
|
1406
|
+
/* events: a bar per week; the bar sits in its first day and reaches across the next ones */
|
|
1407
|
+
.cal .cal__ev { --c: var(--accent); position: absolute; z-index: 1; left: 3px; top: calc(var(--cal-head) + var(--lane, 0) * var(--cal-lane)); width: calc(var(--span, 1) * 100% - 6px); height: calc(var(--cal-lane) - 3px);
|
|
1408
|
+
display: flex; align-items: center; gap: 5px; margin: 0; padding: 0 7px; border: 0; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--c) 15%, var(--card)); box-shadow: inset 3px 0 var(--c);
|
|
1409
|
+
color: var(--ink); font: 600 11.5px/1 var(--font); text-align: left; white-space: nowrap; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; transition: background .15s; }
|
|
1410
|
+
.cal .cal__ev:hover { background: color-mix(in srgb, var(--c) 24%, var(--card)); }
|
|
1411
|
+
.cal .cal__ev:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
1412
|
+
.cal .cal__ev.is-cont-l { left: 0; width: calc(var(--span, 1) * 100% - 3px); border-top-left-radius: 0; border-bottom-left-radius: 0; box-shadow: none; }
|
|
1413
|
+
.cal .cal__ev.is-cont-r { width: calc(var(--span, 1) * 100% - 3px); border-top-right-radius: 0; border-bottom-right-radius: 0; }
|
|
1414
|
+
.cal .cal__ev.is-cont-l.is-cont-r { width: calc(var(--span, 1) * 100%); }
|
|
1415
|
+
.cal .cal__ev.is-dot { background: none; box-shadow: none; padding-left: 5px; }
|
|
1416
|
+
.cal .cal__ev.is-dot:hover { background: var(--bg-2); }
|
|
1417
|
+
.cal--drag .cal__weeks .cal__ev { cursor: grab; }
|
|
1418
|
+
.cal .cal__ev.is-drag { z-index: 50; cursor: grabbing; }
|
|
1419
|
+
.cal__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
|
|
1420
|
+
.cal__ev time { flex: none; color: var(--muted); font-weight: 600; }
|
|
1421
|
+
.cal__evt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
1422
|
+
.cal .cal__ev--good { --c: var(--good); } .cal .cal__ev--warn { --c: var(--warn); } .cal .cal__ev--bad { --c: var(--bad); } .cal .cal__ev--accent { --c: var(--accent); }
|
|
1423
|
+
.cal .cal__ev--indigo { --c: var(--hue-indigo); } .cal .cal__ev--teal { --c: var(--hue-teal); } .cal .cal__ev--rose { --c: var(--hue-rose); } .cal .cal__ev--amber { --c: var(--hue-amber); }
|
|
1424
|
+
.cal .cal__ev--violet { --c: var(--hue-violet); } .cal .cal__ev--green { --c: var(--hue-green); } .cal .cal__ev--slate { --c: var(--hue-slate); } .cal .cal__ev--sky { --c: var(--hue-sky); }
|
|
1425
|
+
.cal__more { position: absolute; left: 3px; right: 3px; top: calc(var(--cal-head) + var(--cal-max) * var(--cal-lane)); height: var(--cal-more); margin: 0; padding: 0 7px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: 650 11px/1 var(--font); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
|
|
1426
|
+
.cal__more:hover { background: var(--bg-2); color: var(--ink); }
|
|
1427
|
+
.cal__more:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
1428
|
+
.cal__more-s { display: none; }
|
|
1429
|
+
/* the “+2 more” list */
|
|
1430
|
+
.cal__pop { position: absolute; z-index: 60; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-3); }
|
|
1431
|
+
.cal__pop-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 0 6px 6px; font-size: var(--fs-sm); }
|
|
1432
|
+
.cal__pop-h b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1433
|
+
.cal__pop-x { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
|
|
1434
|
+
.cal__pop-x:hover { background: var(--bg-2); color: var(--ink); }
|
|
1435
|
+
.cal__pop-x svg { width: 16px; height: 16px; }
|
|
1436
|
+
.cal__pop-list { display: grid; gap: 3px; max-height: 240px; overflow: auto; }
|
|
1437
|
+
.cal .cal__pop .cal__ev { position: relative; left: auto; top: auto; width: auto; height: 28px; font-size: 12.5px; }
|
|
1438
|
+
.cal__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
1439
|
+
/* small: short days, thin colour bars instead of titles (also when the calendar is narrow) */
|
|
1440
|
+
.cal--sm { --cal-head: 32px; --cal-lane: 7px; --cal-more: 15px; }
|
|
1441
|
+
.cal--sm .cal__wd-l { display: none; } .cal--sm .cal__wd-s { display: inline; }
|
|
1442
|
+
.cal--sm .cal__wd { text-align: center; padding: 7px 2px; }
|
|
1443
|
+
.cal--sm .cal__date { left: 0; right: 0; margin: 0 auto; width: max-content; }
|
|
1444
|
+
.cal--sm .cal__mo { display: none; }
|
|
1445
|
+
.cal--sm .cal__weeks .cal__ev, .cal--sm .cal__weeks .cal__ev:hover { left: 5px; width: calc(var(--span, 1) * 100% - 10px); height: 4px; padding: 0; border-radius: 3px; background: var(--c); box-shadow: none; }
|
|
1446
|
+
.cal--sm .cal__weeks .cal__ev.is-cont-l { left: 0; width: calc(var(--span, 1) * 100% - 5px); }
|
|
1447
|
+
.cal--sm .cal__weeks .cal__ev.is-cont-r { width: calc(var(--span, 1) * 100% - 5px); }
|
|
1448
|
+
.cal--sm .cal__weeks .cal__ev.is-cont-l.is-cont-r { width: calc(var(--span, 1) * 100%); }
|
|
1449
|
+
.cal--sm .cal__weeks .cal__ev > * { display: none; }
|
|
1450
|
+
.cal--sm .cal__more { text-align: center; padding: 0; font-size: 10.5px; }
|
|
1451
|
+
.cal--sm .cal__more-l { display: none; } .cal--sm .cal__more-s { display: inline; }
|
|
1452
|
+
@container cal (max-width: 520px) {
|
|
1453
|
+
.cal__grid { --cal-head: 32px; --cal-lane: 7px; --cal-more: 15px; }
|
|
1454
|
+
.cal__wd-l { display: none; } .cal__wd-s { display: inline; }
|
|
1455
|
+
.cal__wd { text-align: center; padding: 7px 2px; }
|
|
1456
|
+
.cal__date { left: 0; right: 0; margin: 0 auto; width: max-content; }
|
|
1457
|
+
.cal__mo { display: none; }
|
|
1458
|
+
.cal .cal__weeks .cal__ev, .cal .cal__weeks .cal__ev:hover { left: 5px; width: calc(var(--span, 1) * 100% - 10px); height: 4px; padding: 0; border-radius: 3px; background: var(--c); box-shadow: none; }
|
|
1459
|
+
.cal .cal__weeks .cal__ev.is-cont-l { left: 0; width: calc(var(--span, 1) * 100% - 5px); }
|
|
1460
|
+
.cal .cal__weeks .cal__ev.is-cont-r { width: calc(var(--span, 1) * 100% - 5px); }
|
|
1461
|
+
.cal .cal__weeks .cal__ev.is-cont-l.is-cont-r { width: calc(var(--span, 1) * 100%); }
|
|
1462
|
+
.cal__weeks .cal__ev > * { display: none; }
|
|
1463
|
+
.cal__more { text-align: center; padding: 0; font-size: 10.5px; }
|
|
1464
|
+
.cal__more-l { display: none; } .cal__more-s { display: inline; }
|
|
1465
|
+
.cal__title { font-size: var(--fs); }
|
|
1466
|
+
}
|
|
1467
|
+
@media (prefers-reduced-motion: reduce) { .cal__cell, .cal__date, .cal .cal__ev { transition: none; } }
|
|
1468
|
+
|
|
1469
|
+
/* ---------- wizard (wizard) ---------- */
|
|
1470
|
+
.wz { position: relative; display: flex; flex-direction: column; gap: 20px; min-width: 0; color: var(--ink); container: wz / inline-size; }
|
|
1471
|
+
.wz__steps { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
|
|
1472
|
+
.wz__step { display: flex; align-items: center; flex: 1 1 0; min-width: 0; }
|
|
1473
|
+
.wz__step:last-child { flex: none; }
|
|
1474
|
+
.wz__sbtn { display: flex; align-items: center; gap: 10px; min-width: 0; margin: -4px; padding: 4px 8px 4px 4px; border: 0; border-radius: var(--r-sm); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s; -webkit-tap-highlight-color: transparent; }
|
|
1475
|
+
.wz__sbtn:hover:not([aria-disabled="true"]) { background: var(--bg-2); }
|
|
1476
|
+
.wz__sbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
1477
|
+
.wz__sbtn[aria-disabled="true"] { cursor: default; }
|
|
1478
|
+
.wz__step.is-locked .wz__sbtn { cursor: not-allowed; }
|
|
1479
|
+
.wz__dot { position: relative; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid var(--line-2); border-radius: 50%; background: var(--card); color: var(--muted); font: 700 12.5px/1 var(--font); transition: background .25s, border-color .25s, color .25s, box-shadow .25s; }
|
|
1480
|
+
.wz__num { transition: opacity .2s; }
|
|
1481
|
+
.wz__ck { position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
|
|
1482
|
+
.wz__step.is-done .wz__dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
|
|
1483
|
+
.wz__step.is-done .wz__num { opacity: 0; }
|
|
1484
|
+
.wz__step.is-done .wz__ck { stroke-dashoffset: 0; }
|
|
1485
|
+
.wz__step.is-now .wz__dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
|
|
1486
|
+
.wz__step.is-now.is-done .wz__dot { color: var(--accent-ink); }
|
|
1487
|
+
.wz__lbl { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
1488
|
+
.wz__lbl b { overflow: hidden; color: var(--ink-2); font-size: 13px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
|
|
1489
|
+
.wz__lbl small { overflow: hidden; color: var(--muted); font-size: 11.5px; font-weight: 550; white-space: nowrap; text-overflow: ellipsis; }
|
|
1490
|
+
.wz__step.is-now .wz__lbl b { color: var(--ink); }
|
|
1491
|
+
.wz__step.is-locked .wz__lbl b { color: var(--muted); }
|
|
1492
|
+
.wz__line { position: relative; flex: 1; min-width: 12px; height: 3px; margin: 0 12px; overflow: hidden; border-radius: 3px; background: var(--line); }
|
|
1493
|
+
.wz__line i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
|
|
1494
|
+
/* header: one bar */
|
|
1495
|
+
.wz__bar { display: grid; gap: 9px; }
|
|
1496
|
+
.wz__meta { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
|
|
1497
|
+
.wz__count { flex: none; color: var(--accent); font-size: 12px; font-weight: 750; }
|
|
1498
|
+
.wz__name { min-width: 0; overflow: hidden; font-size: 13.5px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
|
|
1499
|
+
.wz__track { position: relative; height: 6px; overflow: hidden; border-radius: 999px; background: var(--line); }
|
|
1500
|
+
.wz__fill { position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
|
|
1501
|
+
/* panels */
|
|
1502
|
+
.wz__vp { position: relative; }
|
|
1503
|
+
.wz__vp.is-moving { overflow: hidden; overflow: clip; }
|
|
1504
|
+
.wz__panel[hidden], .wz__foot[hidden] { display: none; }
|
|
1505
|
+
.wz__panel.is-leaving { position: absolute; inset: 0 0 auto; pointer-events: none; }
|
|
1506
|
+
.wz__h { margin: 0 0 14px; font-size: var(--fs-md); font-weight: 750; line-height: 1.3; border-radius: 4px; }
|
|
1507
|
+
.wz__h:focus { outline: none; }
|
|
1508
|
+
.wz__h:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
|
|
1509
|
+
.wz__sub { margin: -8px 0 16px; color: var(--muted); font-size: 13px; }
|
|
1510
|
+
.wz__err { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 9px 12px; border-radius: var(--r-sm); background: var(--bad-soft); color: var(--bad); font-size: 12.5px; font-weight: 650; }
|
|
1511
|
+
.wz__err:empty { display: none; }
|
|
1512
|
+
.wz__err svg { flex: none; width: 16px; height: 16px; }
|
|
1513
|
+
.wz__fin { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 0 6px; text-align: center; }
|
|
1514
|
+
.wz__fin .wz__h { margin: 10px 0 4px; }
|
|
1515
|
+
.wz__fin .wz__sub { margin: 0; max-width: 40ch; }
|
|
1516
|
+
.wz__tick { width: 68px; height: 68px; border-radius: 50%; background: var(--good-soft); color: var(--good); }
|
|
1517
|
+
.wz__tick-c, .wz__tick-p { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
|
|
1518
|
+
.wz__tick-c { transform: rotate(-90deg); transform-origin: 50% 50%; transform-box: fill-box; }
|
|
1519
|
+
/* buttons */
|
|
1520
|
+
.wz__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
|
|
1521
|
+
.wz__back:disabled { visibility: hidden; }
|
|
1522
|
+
.wz__next { min-width: 112px; }
|
|
1523
|
+
.wz__ni { display: contents; }
|
|
1524
|
+
.wz__spin { display: none; flex: none; width: 14px; height: 14px; border: 2px solid color-mix(in srgb, currentColor 35%, transparent); border-top-color: currentColor; border-radius: 50%; animation: wz-spin .7s linear infinite; }
|
|
1525
|
+
.wz__next.is-busy { cursor: progress; }
|
|
1526
|
+
.wz__next.is-busy .wz__spin { display: block; }
|
|
1527
|
+
.wz__next.is-busy .wz__ni { display: none; }
|
|
1528
|
+
@keyframes wz-spin { to { transform: rotate(360deg); } }
|
|
1529
|
+
.wz__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
1530
|
+
@container wz (max-width: 520px) {
|
|
1531
|
+
.wz__step:not(.is-now) .wz__lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
1532
|
+
.wz__lbl small { display: none; }
|
|
1533
|
+
.wz__line { margin: 0 6px; }
|
|
1534
|
+
.wz__sbtn { padding-right: 4px; }
|
|
1535
|
+
}
|
|
1536
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1537
|
+
.wz__spin { animation-duration: 1.6s; }
|
|
1538
|
+
.wz__dot, .wz__num, .wz__sbtn { transition: none; }
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
/* ---------- donut chart (donut) ----------
|
|
1542
|
+
Each slice and legend key sets --c (its colour). --dnt-size is the ring's full size. */
|
|
1543
|
+
.dnt { position: relative; min-width: 0; font-size: var(--fs-sm); }
|
|
1544
|
+
.dnt__body { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; }
|
|
1545
|
+
.dnt--bottom .dnt__body { flex-direction: column; align-items: stretch; }
|
|
1546
|
+
.dnt__ring { position: relative; flex: none; width: min(100%, var(--dnt-size)); aspect-ratio: 1; container-type: inline-size; margin: 0 auto; }
|
|
1547
|
+
.dnt__svg { display: block; width: 100%; height: 100%; overflow: visible; }
|
|
1548
|
+
.dnt__track { fill: none; stroke: var(--bg-2); pointer-events: none; }
|
|
1549
|
+
.dnt__slice { fill: var(--c); cursor: pointer; outline: none; transition: opacity .2s; -webkit-tap-highlight-color: transparent; }
|
|
1550
|
+
.dnt.is-active .dnt__slice:not(.is-on) { opacity: .32; }
|
|
1551
|
+
.dnt__slice:focus-visible { stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; paint-order: stroke; }
|
|
1552
|
+
.dnt__mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 1px; text-align: center; pointer-events: none; }
|
|
1553
|
+
.dnt__val { max-width: 100%; font-size: 22px; font-size: clamp(14px, 11.5cqi, 30px); font-weight: 750; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1554
|
+
.dnt__lab { max-width: 100%; font-size: var(--fs-xs); color: var(--muted); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
|
|
1555
|
+
.dnt__legend { display: grid; gap: 2px; flex: 1 1 200px; min-width: 0; max-width: 340px; margin: 0; padding: 0; list-style: none; }
|
|
1556
|
+
.dnt--bottom .dnt__legend { max-width: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 2px 8px; }
|
|
1557
|
+
.dnt__key { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 6px 9px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-2); font: inherit; font-size: var(--fs-sm); text-align: left; cursor: pointer; transition: opacity .2s, background .2s, color .2s; }
|
|
1558
|
+
.dnt__key i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
|
|
1559
|
+
.dnt__kl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1560
|
+
.dnt__kv { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
1561
|
+
.dnt__key em { min-width: 3.2em; font-style: normal; font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
|
|
1562
|
+
.dnt__key:hover, .dnt__key.is-on { background: var(--bg-2); color: var(--ink); }
|
|
1563
|
+
.dnt__key[aria-pressed="true"] { background: var(--accent-soft); color: var(--ink); }
|
|
1564
|
+
.dnt.is-active .dnt__key:not(.is-on) { opacity: .5; }
|
|
1565
|
+
.dnt__key:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
|
|
1566
|
+
.dnt__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
1567
|
+
@media (prefers-reduced-motion: reduce) { .dnt__slice, .dnt__key { transition: none; } }
|
|
1568
|
+
|
|
1569
|
+
/* ---------- goal gauge (gauge) ----------
|
|
1570
|
+
The filled arc and each zone set --c. --gge-size is the dial's full width. */
|
|
1571
|
+
.gge { position: relative; display: grid; justify-items: center; min-width: 0; }
|
|
1572
|
+
.gge__dial { position: relative; display: grid; justify-items: center; gap: 4px; width: min(100%, var(--gge-size)); }
|
|
1573
|
+
.gge__svg { display: block; width: 100%; height: auto; overflow: visible; }
|
|
1574
|
+
.gge__track, .gge__zone, .gge__fill { fill: none; stroke-width: 16; }
|
|
1575
|
+
.gge__track { stroke: var(--bg-2); }
|
|
1576
|
+
.gge__zone { stroke: var(--c); stroke-opacity: .2; }
|
|
1577
|
+
.gge__fill { stroke: var(--c, var(--accent)); transition: stroke .3s; }
|
|
1578
|
+
.gge__goal { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
|
|
1579
|
+
.gge.is-reached .gge__goal { stroke: var(--good); }
|
|
1580
|
+
.gge__needle path { fill: var(--ink); }
|
|
1581
|
+
.gge__hub { fill: var(--ink); stroke: var(--card); stroke-width: 3; }
|
|
1582
|
+
.gge__pin { fill: var(--card); }
|
|
1583
|
+
.gge__end { font-family: inherit; font-size: 9.5px; font-weight: 500; fill: var(--muted); font-variant-numeric: tabular-nums; }
|
|
1584
|
+
.gge__read { display: grid; justify-items: center; gap: 1px; text-align: center; min-width: 0; max-width: 100%; }
|
|
1585
|
+
.gge__num { font-size: 30px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
1586
|
+
.gge__label { font-size: var(--fs-sm); color: var(--ink-2); }
|
|
1587
|
+
.gge__target { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
|
|
1588
|
+
.gge.is-reached .gge__target { color: var(--good); }
|
|
1589
|
+
/* no needle: the number sits inside the arc */
|
|
1590
|
+
.gge--inside .gge__read { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); width: 58%; }
|
|
1591
|
+
.gge--inside .gge__num { font-size: 26px; }
|
|
1592
|
+
.gge__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
1593
|
+
@media (prefers-reduced-motion: reduce) { .gge__fill { transition: none; } }
|
|
1594
|
+
|
|
1595
|
+
/* ---------- password strength (passwordMeter, passwordToggle) ---------- */
|
|
1596
|
+
.pwm__wrap { position: relative; display: block; }
|
|
1597
|
+
.pwm__wrap > input { padding-right: 44px; }
|
|
1598
|
+
.pwm__eye { position: absolute; top: 50%; right: 4px; translate: 0 -50%; display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-xs); color: var(--muted); transition: color .2s, background .2s; }
|
|
1599
|
+
.pwm__eye:hover { color: var(--ink); background: var(--card-2); }
|
|
1600
|
+
.pwm__eye.is-on { color: var(--accent); }
|
|
1601
|
+
.pwm__eye svg { width: 19px; height: 19px; overflow: visible; }
|
|
1602
|
+
.pwm__slash { stroke-dasharray: 1; stroke-dashoffset: 1; }
|
|
1603
|
+
.pwm__cut { stroke: var(--card); stroke-width: 5; stroke-dasharray: 1; stroke-dashoffset: 1; }
|
|
1604
|
+
.pwm__eye:hover .pwm__cut { stroke: var(--card-2); }
|
|
1605
|
+
.pwm { --pwm-c: var(--line-2); display: grid; gap: 10px; margin-top: 8px; font-size: var(--fs-sm); }
|
|
1606
|
+
.pwm[data-level="tooWeak"] { --pwm-c: var(--bad); }
|
|
1607
|
+
.pwm[data-level="weak"] { --pwm-c: var(--warn); }
|
|
1608
|
+
.pwm[data-level="okay"] { --pwm-c: color-mix(in srgb, var(--warn) 45%, var(--good)); }
|
|
1609
|
+
.pwm[data-level="strong"] { --pwm-c: var(--good); }
|
|
1610
|
+
.pwm__status { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
|
|
1611
|
+
.pwm--nolock .pwm__status { grid-template-columns: minmax(0, 1fr) auto; }
|
|
1612
|
+
.pwm__lock { display: block; width: 22px; height: 22px; color: var(--pwm-c); overflow: visible; transition: color .3s; }
|
|
1613
|
+
.pwm[data-level="empty"] .pwm__lock { color: var(--faint); }
|
|
1614
|
+
.pwm__bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
|
|
1615
|
+
.pwm__bar { display: block; height: 6px; border-radius: var(--r-full); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
|
|
1616
|
+
.pwm__bar > i { display: block; height: 100%; border-radius: inherit; background: var(--pwm-c); transform: scaleX(0); transform-origin: 0 50%; transition: background-color .3s; }
|
|
1617
|
+
.pwm__word { display: inline-grid; justify-items: end; min-width: 5.5em; overflow: hidden; font-weight: 650; color: var(--pwm-c); white-space: nowrap; transition: color .3s; }
|
|
1618
|
+
.pwm__word > span { grid-area: 1 / 1; }
|
|
1619
|
+
.pwm[data-level="empty"] .pwm__word { color: var(--muted); font-weight: 600; }
|
|
1620
|
+
.pwm__rules { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-weight: 500; }
|
|
1621
|
+
.pwm__rule { display: flex; align-items: center; gap: 9px; transition: color .2s; }
|
|
1622
|
+
.pwm__rule.is-met { color: var(--ink-2); }
|
|
1623
|
+
.pwm__tick { flex: none; display: block; width: 18px; height: 18px; overflow: visible; }
|
|
1624
|
+
.pwm__ring { fill: transparent; stroke: var(--line-2); stroke-width: 1.5; transition: fill .25s, stroke .25s; }
|
|
1625
|
+
.pwm__rule.is-met .pwm__ring { fill: var(--good); stroke: var(--good); }
|
|
1626
|
+
.pwm__mark { fill: none; stroke: var(--card); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
|
|
1627
|
+
.pwm__sr { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
1628
|
+
.pwm--still, .pwm--still * { transition-duration: 0s; }
|
|
1629
|
+
@media (prefers-reduced-motion: reduce) { .pwm *, .pwm__eye { transition: none; } }
|
|
1630
|
+
.pwm__wrap > .input--sm { padding-right: 36px; }
|
|
1631
|
+
.pwm__wrap > .input--sm ~ .pwm__eye { right: 3px; width: 28px; height: 28px; }
|
|
1632
|
+
.pwm__wrap > .input--sm ~ .pwm__eye svg { width: 16px; height: 16px; }
|
|
1633
|
+
|
|
1634
|
+
/* ---------- sign in / create account (authForm) ---------- */
|
|
1635
|
+
.auth { width: min(380px, 100%); padding: 20px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
|
|
1636
|
+
.auth__switch.seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-bottom: 18px; }
|
|
1637
|
+
.auth__switch button { justify-content: center; height: 36px; padding: 0 8px; font-size: var(--fs-sm); }
|
|
1638
|
+
.auth__switch button:disabled { cursor: default; }
|
|
1639
|
+
.auth__grow { display: flow-root; }
|
|
1640
|
+
.auth__grow[hidden] { display: none; }
|
|
1641
|
+
.auth .field { margin-bottom: 14px; }
|
|
1642
|
+
.auth .field > label { color: var(--ink-2); }
|
|
1643
|
+
.auth .input { height: 44px; font-size: var(--fs); font-weight: 500; }
|
|
1644
|
+
.auth .input[aria-invalid="true"] { border-color: var(--bad); }
|
|
1645
|
+
.auth .input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px var(--bad-soft); }
|
|
1646
|
+
.auth .input:read-only { cursor: progress; }
|
|
1647
|
+
.auth__err { color: var(--bad); font-weight: 600; }
|
|
1648
|
+
.auth__meter > .pwm { margin: -6px 0 14px; }
|
|
1649
|
+
.auth__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: -2px 0 16px; font-size: var(--fs-sm); }
|
|
1650
|
+
.auth__check { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); font-weight: 600; cursor: pointer; }
|
|
1651
|
+
.auth__check .check { width: 20px; height: 20px; border-radius: 6px; }
|
|
1652
|
+
.auth__check .check svg { width: 13px; height: 13px; }
|
|
1653
|
+
.auth__forgot { color: var(--accent); font-weight: 650; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s; }
|
|
1654
|
+
.auth__forgot:hover { text-decoration-color: currentColor; }
|
|
1655
|
+
.auth__go { position: relative; overflow: hidden; }
|
|
1656
|
+
.auth__roll { display: inline-grid; overflow: hidden; padding: 2px 0; transition: opacity .2s; }
|
|
1657
|
+
.auth__roll > span { grid-area: 1 / 1; white-space: nowrap; }
|
|
1658
|
+
.auth__spin { display: none; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; animation: auth-spin .7s linear infinite; }
|
|
1659
|
+
.auth.is-busy .auth__go { cursor: progress; }
|
|
1660
|
+
.auth.is-busy .auth__roll { opacity: 0; }
|
|
1661
|
+
.auth.is-busy .auth__spin { display: block; }
|
|
1662
|
+
.auth--still .auth__spin { animation-duration: 1.8s; }
|
|
1663
|
+
.auth__msg { min-height: 1.45em; margin: 12px 0 0; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); text-align: center; }
|
|
1664
|
+
.auth__msg:empty { margin-top: 0; min-height: 0; }
|
|
1665
|
+
.auth__msg.is-bad { color: var(--bad); }
|
|
1666
|
+
.auth__msg.is-good { color: var(--good); }
|
|
1667
|
+
@keyframes auth-spin { to { transform: rotate(360deg); } }
|
|
1668
|
+
@media (prefers-reduced-motion: reduce) { .auth__spin { animation-duration: 1.8s; } .auth__roll, .auth__forgot { transition: none; } }
|
|
1669
|
+
@media (max-width: 400px) { .auth { padding: 16px; } }
|
|
1670
|
+
|
|
1671
|
+
/* ---------- spinner (spinner) ----------
|
|
1672
|
+
Orbit loader: the ring is 1em across, so font-size sets the size. Colour --orb-c (set by tone),
|
|
1673
|
+
ring --orb-track, thickness --orb-w, head --orb-head, one lap --orb-speed. */
|
|
1674
|
+
.orb { --orb-c: var(--accent); --orb-track: color-mix(in srgb, var(--orb-c) 16%, transparent); --orb-w: .11em; --orb-head: .18em;
|
|
1675
|
+
display: inline-flex; align-items: center; gap: 10px; font-size: 28px; line-height: 1; vertical-align: middle; }
|
|
1676
|
+
.orb--ink { --orb-c: var(--ink); }
|
|
1677
|
+
.orb--muted { --orb-c: var(--muted); }
|
|
1678
|
+
.orb--good { --orb-c: var(--good); }
|
|
1679
|
+
.orb--warn { --orb-c: var(--warn); }
|
|
1680
|
+
.orb--bad { --orb-c: var(--bad); }
|
|
1681
|
+
.orb--current { --orb-c: currentColor; }
|
|
1682
|
+
.orb--stack { flex-direction: column; gap: 12px; }
|
|
1683
|
+
.orb__dial { position: relative; flex: none; width: 1em; height: 1em; border-radius: 50%; box-shadow: inset 0 0 0 var(--orb-w) var(--orb-track); }
|
|
1684
|
+
.orb--bare .orb__dial { box-shadow: none; }
|
|
1685
|
+
.orb__spin { position: absolute; inset: 0; border-radius: 50%; animation: orb-spin var(--orb-speed, 1s) linear infinite; }
|
|
1686
|
+
/* the tail: a sweep from clear to full colour, cut down to a ring */
|
|
1687
|
+
.orb__spin::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(transparent 0 14%, var(--orb-c));
|
|
1688
|
+
-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--orb-w)), #000 calc(100% - var(--orb-w) + .5px));
|
|
1689
|
+
mask: radial-gradient(farthest-side, transparent calc(100% - var(--orb-w)), #000 calc(100% - var(--orb-w) + .5px)); }
|
|
1690
|
+
/* the head: a glowing dot at the bright end of the tail */
|
|
1691
|
+
.orb__spin::after { content: ''; position: absolute; left: 50%; top: calc(var(--orb-w) / 2); width: var(--orb-head); height: var(--orb-head); margin: calc(var(--orb-head) / -2) 0 0 calc(var(--orb-head) / -2);
|
|
1692
|
+
border-radius: 50%; background: var(--orb-c); box-shadow: 0 0 .12em var(--orb-c), 0 0 .4em color-mix(in srgb, var(--orb-c) 55%, transparent); }
|
|
1693
|
+
.orb__label { font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; color: var(--muted); }
|
|
1694
|
+
.orb__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
|
|
1695
|
+
@keyframes orb-spin { to { transform: rotate(1turn); } }
|
|
1696
|
+
@keyframes orb-breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
|
|
1697
|
+
/* reduced motion: the comet stays put and the ring breathes slowly */
|
|
1698
|
+
.orb--still .orb__spin { animation: orb-breathe 2.4s ease-in-out infinite; }
|
|
1699
|
+
@media (prefers-reduced-motion: reduce) { .orb__spin { animation: orb-breathe 2.4s ease-in-out infinite; } }
|
|
1700
|
+
|
|
1701
|
+
/* ---------- calendar heatmap (heatmap) ----------
|
|
1702
|
+
--hm-c: the colour (set by tone); each square mixes --p of it into --hm-empty.
|
|
1703
|
+
Squares shrink to fit the width between --hm-min and --hm-max; below --hm-min the weeks scroll sideways. */
|
|
1704
|
+
.hmap { --hm-c: var(--accent); --hm-gap: 3px; --hm-min: 9px; --hm-max: 16px; --hm-lab: 30px; --hm-empty: color-mix(in srgb, var(--ink) 7%, var(--card));
|
|
1705
|
+
container: hmap / inline-size; position: relative; display: grid; gap: 10px; width: 100%; min-width: 0; font-size: var(--fs-xs); color: var(--muted); }
|
|
1706
|
+
.hmap__scroll { --hm-s: clamp(var(--hm-min), (100cqi - var(--hm-lab) - 8px - (var(--hm-weeks, 26) - 1) * var(--hm-gap)) / var(--hm-weeks, 26), var(--hm-max));
|
|
1707
|
+
overflow-x: auto; overflow-y: hidden; margin: -4px; padding: 4px; scrollbar-width: thin; }
|
|
1708
|
+
.hmap__body { display: grid; grid-template-columns: var(--hm-lab) max-content; grid-template-rows: 16px auto; row-gap: 4px; width: max-content; }
|
|
1709
|
+
.hmap__months { grid-column: 2; position: relative; height: 16px; }
|
|
1710
|
+
.hmap__months span { position: absolute; top: 0; left: calc(var(--c) * (var(--hm-s, 14px) + var(--hm-gap))); line-height: 16px; white-space: nowrap; }
|
|
1711
|
+
.hmap__days { grid-column: 1; grid-row: 2; display: grid; grid-template-rows: repeat(7, var(--hm-s, 14px)); row-gap: var(--hm-gap); }
|
|
1712
|
+
.hmap__days span { line-height: var(--hm-s, 14px); white-space: nowrap; overflow: visible; }
|
|
1713
|
+
.hmap__grid { grid-column: 2; grid-row: 2; display: grid; row-gap: var(--hm-gap); outline: none; }
|
|
1714
|
+
.hmap__row { display: flex; gap: var(--hm-gap); }
|
|
1715
|
+
.hmap__cell { flex: none; width: var(--hm-s, 14px); height: var(--hm-s, 14px); border-radius: max(2px, calc(var(--hm-s, 14px) * .22));
|
|
1716
|
+
background: color-mix(in srgb, var(--hm-c) var(--p, 0%), var(--hm-empty)); outline: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
|
|
1717
|
+
.hmap__cell.is-none { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
|
|
1718
|
+
.hmap__cell.is-pad { visibility: hidden; pointer-events: none; }
|
|
1719
|
+
.hmap__cell:hover { box-shadow: 0 0 0 1.5px var(--ink-2); }
|
|
1720
|
+
.hmap__cell.is-sel { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--ink); }
|
|
1721
|
+
.hmap__cell:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
|
|
1722
|
+
.hmap__foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
|
|
1723
|
+
.hmap__legend { display: inline-flex; align-items: center; gap: 3px; }
|
|
1724
|
+
.hmap__legend span { margin: 0 4px; }
|
|
1725
|
+
.hmap__legend i { width: 11px; height: 11px; border-radius: 3px; background: color-mix(in srgb, var(--hm-c) var(--p, 0%), var(--hm-empty)); }
|
|
1726
|
+
.hmap__tip { position: absolute; left: 0; top: 0; z-index: 3; padding: 6px 10px; border-radius: var(--r-xs); background: var(--ink); color: var(--card); box-shadow: var(--shadow-2);
|
|
1727
|
+
font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden; }
|
|
1728
|
+
.hmap__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
1729
|
+
@container hmap (max-width: 440px) { .hmap__scroll { --hm-gap: 2px; --hm-min: 8px; --hm-lab: 26px; } }
|
|
1730
|
+
|
|
1731
|
+
/* ---------- leaderboard (leaderboard) ----------
|
|
1732
|
+
--lbd-c: bar colour. .lbd--av (set when any row has an avatar) adds the avatar column.
|
|
1733
|
+
Medals: .is-m1 / .is-m2 / .is-m3 on the rank mark take --m. */
|
|
1734
|
+
.lbd { --lbd-c: var(--accent); position: relative; min-width: 0; font-size: var(--fs-sm); color: var(--ink-2); }
|
|
1735
|
+
.lbd__list { position: relative; display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
|
|
1736
|
+
.lbd__row { position: relative; isolation: isolate; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 10px; border-radius: var(--r-sm); background: var(--card); }
|
|
1737
|
+
.lbd__row.is-leaving { pointer-events: none; }
|
|
1738
|
+
.lbd__flash { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: color-mix(in srgb, var(--good) 14%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--good) 30%, transparent); opacity: 0; pointer-events: none; }
|
|
1739
|
+
.lbd__rank { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-full); overflow: hidden; font-size: var(--fs-sm); font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
1740
|
+
.lbd__n { display: block; }
|
|
1741
|
+
.lbd__rank.is-m1 { --m: var(--hue-amber); } .lbd__rank.is-m2 { --m: var(--hue-slate); } .lbd__rank.is-m3 { --m: color-mix(in srgb, var(--hue-amber) 55%, var(--hue-rose)); }
|
|
1742
|
+
.lbd__rank[class*="is-m"] { color: var(--m); background: color-mix(in srgb, var(--m) 16%, var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--m) 50%, transparent); }
|
|
1743
|
+
.lbd__av { display: none; flex: none; }
|
|
1744
|
+
.lbd--av .lbd__av { display: inline-flex; width: 28px; justify-content: center; }
|
|
1745
|
+
.lbd__body { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "main chg val" "bar bar bar"; align-items: center; column-gap: 10px; row-gap: 7px; }
|
|
1746
|
+
.lbd--nobar .lbd__body { grid-template-areas: "main chg val"; }
|
|
1747
|
+
.lbd__main { grid-area: main; display: grid; min-width: 0; line-height: 1.3; }
|
|
1748
|
+
.lbd__name, .lbd__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1749
|
+
.lbd__name { font-size: var(--fs); font-weight: 600; color: var(--ink); }
|
|
1750
|
+
.lbd__sub { font-size: var(--fs-xs); color: var(--muted); }
|
|
1751
|
+
.lbd__sub:empty { display: none; }
|
|
1752
|
+
.lbd__chg { grid-area: chg; display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--r-full); font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
1753
|
+
.lbd__chg:empty { display: none; }
|
|
1754
|
+
.lbd__chg.is-up { color: var(--good); background: var(--good-soft); }
|
|
1755
|
+
.lbd__chg.is-down { color: var(--muted); background: var(--bg-2); }
|
|
1756
|
+
.lbd__chg.is-new { color: var(--accent); background: var(--accent-soft); }
|
|
1757
|
+
.lbd__val { grid-area: val; min-width: 3ch; text-align: right; font-size: var(--fs); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
1758
|
+
.lbd__bar { grid-area: bar; height: 6px; border-radius: var(--r-full); background: color-mix(in srgb, var(--ink) 7%, transparent); overflow: hidden; }
|
|
1759
|
+
.lbd__bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--lbd-c); }
|
|
1760
|
+
.lbd__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
1761
|
+
@media (max-width: 420px) { .lbd__row { gap: 8px; padding: 8px; } .lbd__body { column-gap: 8px; } .lbd__name, .lbd__val { font-size: var(--fs-sm); } }
|