File size: 28,499 Bytes
8f175f6
bcc4b86
33ce28f
 
bcc4b86
33ce28f
 
 
bcc4b86
 
aa61ac1
 
33ce28f
 
 
aa61ac1
33ce28f
 
 
 
bcc4b86
33ce28f
aa61ac1
33ce28f
 
 
 
 
bcc4b86
33ce28f
25b02dd
33ce28f
bcc4b86
 
33ce28f
25b02dd
 
 
bcc4b86
33ce28f
 
 
 
 
 
 
 
 
 
 
 
 
25b02dd
33ce28f
 
25b02dd
aa61ac1
25b02dd
33ce28f
 
 
 
bcc4b86
33ce28f
 
 
 
 
25b02dd
33ce28f
 
 
bcc4b86
 
 
33ce28f
bcc4b86
33ce28f
aa61ac1
33ce28f
 
aa61ac1
bcc4b86
 
aa61ac1
 
 
 
33ce28f
 
 
25b02dd
 
 
bcc4b86
33ce28f
 
 
 
 
25b02dd
33ce28f
 
bcc4b86
25b02dd
33ce28f
 
 
 
bcc4b86
aa61ac1
33ce28f
 
bcc4b86
33ce28f
bcc4b86
aa61ac1
bcc4b86
33ce28f
 
 
 
 
bcc4b86
33ce28f
bcc4b86
33ce28f
 
 
bcc4b86
33ce28f
 
 
 
aa61ac1
33ce28f
bcc4b86
 
25b02dd
33ce28f
 
bcc4b86
33ce28f
 
 
 
 
 
bcc4b86
33ce28f
25b02dd
aa61ac1
33ce28f
 
 
bcc4b86
33ce28f
bcc4b86
33ce28f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bcc4b86
aa61ac1
 
 
 
 
33ce28f
bcc4b86
33ce28f
 
bcc4b86
 
33ce28f
 
aa61ac1
bcc4b86
33ce28f
aa61ac1
33ce28f
bcc4b86
33ce28f
bcc4b86
 
33ce28f
 
 
bcc4b86
 
 
33ce28f
 
 
 
 
 
bcc4b86
aa61ac1
bcc4b86
33ce28f
bcc4b86
33ce28f
 
 
 
 
 
 
 
bcc4b86
 
33ce28f
bcc4b86
33ce28f
 
bcc4b86
33ce28f
aa61ac1
bcc4b86
33ce28f
 
 
 
 
 
bcc4b86
4545bb3
 
 
 
 
25b02dd
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
/* Patchwise: the Apple-style layer (UI-APPLE.md). Loaded after styles.css and the Mantine styles.

   1-2 tokens: see tokens.css  3 base  4 Mantine controls  5 materials and shell

   6 shared components  7 screens (appended below, one section per screen). */

/* ------------------------------------------------------------------ 1-2. tokens and legacy aliases: moved to tokens.css */

/* ------------------------------------------------------------------ 3. base */
html { font-optical-sizing: auto; }
body { background: var(--bg); color: var(--label); font-family: var(--font); font-size: var(--fs-base); line-height: var(--lh-base); letter-spacing: var(--ls-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, h6, .fpt-title { font-family: var(--font); font-weight: var(--fw-bold); }
a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, currentColor 38%, transparent); }
a:hover { text-decoration-color: currentColor; }
::selection { background: var(--accent-soft-2); }
code, kbd, pre, samp, .fpt-idpill { font-family: var(--mono); }
.fpt-num { font-variant-numeric: tabular-nums; }
:focus-visible, .mantine-focus-auto:focus-visible, .mantine-focus-always:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); box-shadow: 0 0 0 2px var(--focus-gap); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
.fpt-main::-webkit-scrollbar, .fpt-ws-scroll::-webkit-scrollbar, .fpt-panel-content::-webkit-scrollbar, .fpt-chat-scroll::-webkit-scrollbar { width: 12px; }
.fpt-main::-webkit-scrollbar-thumb, .fpt-ws-scroll::-webkit-scrollbar-thumb, .fpt-panel-content::-webkit-scrollbar-thumb, .fpt-chat-scroll::-webkit-scrollbar-thumb { background: var(--fill-3); border-radius: var(--r-sm); border: 3px solid transparent; background-clip: content-box; }
@keyframes trio-pagein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes trio-pulse { 0% { box-shadow: 0 0 0 0 var(--pulse); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes trio-blink { 50% { opacity: 0.35; } }
@keyframes trio-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes trio-slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes trio-fadein { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------------ 4. Mantine controls (sizes come from tokens.css) */
/* buttons: pills, 32px, a calm press */
.mantine-Button-root { --button-fz: var(--fs-base) !important; border-radius: var(--r-md); font-weight: var(--fw-medium); letter-spacing: -0.006em; border-width: 0;
  transition: background var(--d1) var(--ease), transform var(--d1) var(--ease), box-shadow var(--d2), opacity var(--d2); }
.mantine-Button-root[style*='compact'] { --button-fz: var(--fs-xs) !important; }
.mantine-Button-root[style*='--button-height: var(--button-height-md)'] { --button-fz: var(--fs-base) !important; }
.mantine-Button-root:active:not(:disabled):not([data-disabled]) { transform: scale(0.975); }
.mantine-Button-root[data-variant='default'] { background: var(--bg-elev); color: var(--label); border: 1px solid var(--sep-strong); --button-hover: var(--fill); }
.mantine-Button-root[data-variant='default']:hover:not(:disabled):not([data-disabled]) { background: var(--fill); }
.mantine-Button-root[data-variant='default']:active:not(:disabled):not([data-disabled]) { background: var(--fill-2); }
.mantine-Button-root[data-variant='filled'] { font-weight: var(--fw-semibold); color: var(--on-accent); }
.mantine-Button-root[data-variant='filled']:not([style*='red']):not([style*='green']):not([style*='orange']):not([style*='yellow']) { background: var(--accent); }
.mantine-Button-root[data-variant='filled']:not([style*='red']):not([style*='green']):not([style*='orange']):not([style*='yellow']):hover:not(:disabled):not([data-disabled]) { background: var(--accent-hover); }
.mantine-Button-root[data-variant='filled']:not([style*='red']):not([style*='green']):not([style*='orange']):not([style*='yellow']):active:not(:disabled):not([data-disabled]) { background: var(--accent-press); }
.mantine-Button-root[data-variant='filled'][style*='red'] { background: #d70015; }
.mantine-Button-root[data-variant='light'][style*='red'] { background: var(--red-soft); color: var(--red); }
.mantine-Button-root[data-variant='light'][style*='red']:hover:not(:disabled) { background: rgba(255, 59, 48, 0.2); }
.mantine-Button-root[data-variant='subtle'], .mantine-Button-root[data-variant='transparent'] { color: var(--accent-text); }
.mantine-Button-root[data-variant='subtle']:hover:not(:disabled), .mantine-Button-root[data-variant='transparent']:hover:not(:disabled) { background: var(--accent-soft); }
.mantine-Button-root[data-variant='subtle'][style*='gray'] { color: var(--label-2); }
.mantine-Button-root[data-variant='subtle'][style*='gray']:hover:not(:disabled) { background: var(--fill); color: var(--label); }
.mantine-Button-root[data-variant='white'] { background: var(--bg-elev); color: var(--label); }
.mantine-Button-root:disabled, .mantine-Button-root[data-disabled] { opacity: 0.42; background: var(--fill); color: var(--label-2); }
.mantine-Button-root[data-variant='filled']:disabled, .mantine-Button-root[data-variant='filled'][data-disabled] { background: var(--accent); color: var(--on-accent); opacity: 0.42; }
.mantine-ActionIcon-root { border-radius: var(--r-md); }
.mantine-ActionIcon-root[data-variant='subtle'], .mantine-ActionIcon-root[data-variant='transparent'] { color: var(--label-2); --ai-hover: var(--fill); }
.mantine-ActionIcon-root[data-variant='subtle']:hover { color: var(--label); }
.mantine-ActionIcon-root[data-variant='default'] { background: var(--bg-elev); border: 1px solid var(--sep-strong); color: var(--label); --ai-hover: var(--fill-2); }
.mantine-ActionIcon-root[data-variant='filled'] { background: var(--accent); color: var(--on-accent); }
.fpt-iconbtn { width: 32px; height: 32px; border-radius: var(--r-md); border: 0; background: var(--fill); color: var(--label); transition: background var(--d1) var(--ease); }
.fpt-iconbtn:hover { background: var(--fill-2); }
.fpt-iconbtn[data-active='true'] { background: var(--accent-soft-2); color: var(--accent-text); }

/* text fields: 38px, inset ring, accent halo on focus */
.mantine-Input-input, .mantine-Textarea-input, .mantine-Select-input, .mantine-PasswordInput-innerInput { font-size: var(--fs-base) !important; letter-spacing: -0.006em; color: var(--label); background: var(--bg-elev);
  border: 0 !important; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--sep-strong); transition: box-shadow var(--d2); }
.mantine-PasswordInput-input { border: 0 !important; background: var(--bg-elev); box-shadow: inset 0 0 0 1px var(--sep-strong); border-radius: var(--r-md); }
.mantine-PasswordInput-innerInput { box-shadow: none; background: transparent; }
.mantine-Input-input:hover:not(:disabled), .mantine-PasswordInput-input:hover { box-shadow: inset 0 0 0 1px var(--label-3); }
.mantine-Input-input:focus, .mantine-Input-input:focus-within, .mantine-Input-input[data-expanded], .mantine-PasswordInput-input:focus-within {
  box-shadow: inset 0 0 0 1px var(--focus), 0 0 0 2px var(--accent-soft-2) !important; outline: none; border-bottom-color: transparent; }
.mantine-Input-input[data-error], .mantine-PasswordInput-input[data-error] { box-shadow: inset 0 0 0 1.5px var(--red-dot); }
.mantine-Input-input::placeholder { color: var(--ph); opacity: 1; }
.mantine-Input-input:disabled { opacity: 0.6; background: var(--fill); }
.mantine-InputWrapper-label { font-size: var(--fs-sm); line-height: 16px; font-weight: var(--fw-medium); margin-bottom: 6px; color: var(--label); }
.mantine-InputWrapper-description { font-size: var(--fs-xs); line-height: 16px; color: var(--label-2); }
.mantine-InputWrapper-error { font-size: var(--fs-xs); color: var(--red); }
.mantine-Input-section { color: var(--label-2); }
.mantine-Checkbox-input { border-radius: var(--r-sm); border: 0; box-shadow: inset 0 0 0 1.5px var(--sep-strong); background: var(--bg-elev); }
.mantine-Checkbox-input:checked { background: var(--accent); box-shadow: none; }
.mantine-Checkbox-icon { color: var(--on-accent); }
.mantine-Radio-radio { border: 0; box-shadow: inset 0 0 0 1.5px var(--sep-strong); background: var(--bg-elev); }
.mantine-Radio-radio:checked { background: var(--accent); box-shadow: none; }
.mantine-Radio-icon { color: var(--on-accent); }
.mantine-Checkbox-label, .mantine-Radio-label, .mantine-Switch-label { font-size: var(--fs-base); color: var(--label); }
.mantine-Checkbox-description, .mantine-Radio-description, .mantine-Switch-description { font-size: var(--fs-xs); line-height: 17px; color: var(--label-2); }
/* switch: 44x26, graphite when on (near-white in dark, the thumb flips to near-black) */
.mantine-Switch-root { --switch-height: 26px !important; --switch-width: 44px !important; --switch-thumb-size: 22px !important; --switch-color: var(--accent) !important; }
.mantine-Switch-input:checked + .mantine-Switch-track { background: var(--accent); }
.mantine-Switch-input:checked + .mantine-Switch-track .mantine-Switch-thumb { background: var(--on-accent); }
.mantine-Switch-track { border: 0; background: var(--fill-3); }
.mantine-Switch-thumb { border: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28), 0 0 0 0.5px rgba(0, 0, 0, 0.04); background: #fff; transition: inset-inline-start var(--d3) var(--ease-spring); }
/* segmented control: a pill track with a thumb */
.mantine-SegmentedControl-root { padding: 2px; border-radius: var(--r-md); background: var(--fill); border: 0; overflow: visible; }
.mantine-SegmentedControl-indicator { border-radius: var(--r-sm); background: var(--seg-thumb); box-shadow: var(--sh-seg); border: 0; transition-duration: var(--d3); transition-timing-function: var(--ease-spring); }
.mantine-SegmentedControl-label { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--label-2); border-radius: var(--r-sm); padding: 4px 14px; }
.mantine-SegmentedControl-label[data-active] { color: var(--label); font-weight: var(--fw-medium); }
.mantine-SegmentedControl-label:hover:not([data-active]) { color: var(--label); }
.mantine-SegmentedControl-control::before { display: none; }
/* tabs: pill tabs on a track (inspector, detail switcher); settings keeps its own vertical list below */
.mantine-Tabs-list { gap: 2px; }
.mantine-Tabs-list::before { display: none; }
.mantine-Tabs-tab { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--label-2); border-radius: var(--r-sm); background: transparent; padding: 5px 12px; transition: color var(--d2), background var(--d1); }
.mantine-Tabs-tab:hover:not([data-active]) { background: var(--fill); color: var(--label); }
.mantine-Tabs-tab[data-active], .mantine-Tabs-tab[data-variant='pills'][data-active], .fpt-panel-tablist .mantine-Tabs-tab[data-active] {
  color: var(--label); font-weight: var(--fw-semibold); background: var(--seg-thumb); box-shadow: var(--sh-seg); border-color: transparent; --tab-border-color: transparent; }
.mantine-Tabs-list:not([data-orientation='vertical']) { background: var(--fill); padding: 2px; border-radius: var(--r-md); width: fit-content; max-width: 100%; }
/* menus, popovers, combobox: a thick material */
.mantine-Menu-dropdown, .mantine-Popover-dropdown, .mantine-Combobox-dropdown, .mantine-Select-dropdown {
  background: var(--mat-pop); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  border: 0; border-radius: var(--r-lg); box-shadow: var(--sh-pop); padding: 6px; color: var(--label); }
.mantine-Menu-item { font-size: var(--fs-base); min-height: 32px; border-radius: var(--r-sm); padding: 0 10px; color: var(--label); }
.mantine-Menu-item:hover, .mantine-Menu-item[data-hovered], .mantine-Menu-item:focus-visible { background: var(--fill-2); color: var(--label); }
.mantine-Menu-item[data-hovered] .mantine-Menu-itemLabel *, .mantine-Menu-item:hover .mantine-Menu-itemLabel * { color: inherit !important; }
.mantine-Menu-item[color='red'], .mantine-Menu-item[data-color='red'] { color: var(--red); }
.mantine-Menu-label { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--label-2); padding: 6px 10px 2px; }
.mantine-Menu-divider { border-color: var(--sep); margin: 5px 8px; }
.mantine-Combobox-option { border-radius: var(--r-sm); font-size: var(--fs-base); min-height: 32px; display: flex; align-items: center; }
.mantine-Combobox-option:hover, .mantine-Combobox-option[data-combobox-selected] { background: var(--fill-2); color: var(--label); }
.mantine-Combobox-option[data-checked] { font-weight: var(--fw-semibold); }
/* sheets and dialogs */
.mantine-Modal-overlay, .mantine-Drawer-overlay { background: var(--scrim); }
.mantine-Modal-content, .mantine-Drawer-content { background: var(--bg-elev); border-radius: var(--r-2xl); box-shadow: var(--sh-pop); color: var(--label); }
.mantine-Modal-header, .mantine-Drawer-header { background: var(--bg-elev); padding: 22px 24px 4px; }
.mantine-Modal-body { padding: 12px 24px 24px; }
.mantine-Modal-title, .mantine-Drawer-title { font-family: var(--font); font-size: var(--fs-xl); line-height: 26px; font-weight: var(--fw-bold); letter-spacing: -0.02em; }
.mantine-Modal-close { border-radius: 50%; }
.mantine-Tooltip-tooltip { font-size: var(--fs-xs); line-height: 16px; border-radius: var(--r-sm); background: var(--mat-pop-solid); color: var(--label); box-shadow: var(--sh-pop); font-weight: var(--fw-medium); }
html:root[data-mantine-color-scheme='dark'] .mantine-Tooltip-tooltip { background: #3a3a3d; }
.mantine-Notification-root { background: var(--mat-pop); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); border-radius: var(--r-xl); box-shadow: var(--sh-pop); padding: 12px 14px 12px 16px; color: var(--label); }
.mantine-Notification-root::before { display: none; }
.mantine-Notification-title { font-weight: var(--fw-semibold); color: var(--label); }
.mantine-Notification-description { color: var(--label-2); }
.mantine-Alert-root { border-radius: var(--r-lg); border: 0; background: var(--fill); color: var(--label); padding: 14px 16px; }
.mantine-Alert-root[data-variant='light'][style*='red'], .mantine-Alert-root[style*='--alert-bg: var(--mantine-color-red'] { background: var(--red-soft); }
.mantine-Alert-root[style*='yellow'], .mantine-Alert-root[style*='orange'] { background: var(--orange-soft); }
.mantine-Alert-root[style*='gray'], .mantine-Alert-root[style*='trio'], .mantine-Alert-root[style*='accent'] { background: var(--fill); }
.mantine-Alert-root[style*='teal'], .mantine-Alert-root[style*='green'] { background: var(--green-soft); }
.mantine-Alert-title { font-weight: var(--fw-semibold); }
.mantine-Alert-message { font-size: var(--fs-base); line-height: 19px; color: var(--label); }
.mantine-Badge-root { text-transform: none; font-weight: var(--fw-medium); letter-spacing: 0; font-size: var(--fs-xs); border-radius: var(--r-sm); border: 1px solid var(--sep-strong); background: var(--bg-elev); color: var(--label); }
.mantine-Progress-root { background: var(--fill-2); border-radius: var(--r-pill); height: 6px !important; }
.mantine-Progress-section { background: var(--accent); }
.mantine-Skeleton-root { border-radius: var(--r-sm); }
.mantine-Skeleton-root::before { background: transparent; }
.mantine-Skeleton-root::after { background: linear-gradient(90deg, var(--fill) 0%, var(--fill-2) 40%, var(--fill) 80%); background-size: 200% 100%; animation: trio-shimmer 1.4s linear infinite; }
.mantine-Accordion-item { background: var(--bg-elev); border: 0; border-radius: var(--r-xl); box-shadow: var(--sh-card); overflow: hidden; margin-bottom: 8px; }
.mantine-Accordion-item[data-active] { background: var(--bg-elev); }
.mantine-Accordion-control { padding: 12px 16px; min-height: 52px; }
.mantine-Accordion-control:hover { background: var(--fill); }
.mantine-Accordion-label { font-size: var(--fs-base); font-weight: var(--fw-semibold); }
.mantine-Accordion-content { padding: 0 16px 16px; }
.mantine-Pagination-control { border: 1px solid var(--sep-strong); background: var(--bg-elev); border-radius: var(--r-md); }
.mantine-Pagination-control[data-active] { background: var(--accent); color: var(--on-accent); }
.mantine-Anchor-root { color: var(--accent-text); }
.mantine-Code-root { background: var(--fill); border-radius: var(--r-md); }
/* tables: hairlines, 52px rows, quiet header */
.mantine-Table-table { --table-border-color: var(--sep); --table-highlight-on-hover-color: var(--fill); --table-striped-color: transparent; font-size: var(--fs-base); }
.mantine-Table-tr { height: 52px; }
.mantine-Table-th { color: var(--label-2); font-weight: var(--fw-medium); font-size: var(--fs-xs); background: var(--bg-elev-2); border-bottom: 0.5px solid var(--sep); }
.mantine-Table-td { border-bottom: 0.5px solid var(--sep); }
.mantine-Table-thead { border-bottom: 0; }
.mantine-Table-tr:last-child .mantine-Table-td { border-bottom: 0; }
.fpt-table thead, .fpt-report .mantine-Table-thead { background: var(--bg-elev-2); }
.mantine-Table-tr[data-hover]:hover, .mantine-Table-table[data-highlight-on-hover] tbody tr:hover { background: var(--fill); }
.mantine-ScrollArea-scrollbar { background: transparent; }

/* ------------------------------------------------------------------ 5. materials and shell */
.fpt-shell { display: flex; height: 100dvh; overflow: hidden; background: var(--bg); position: relative; }
.fpt-shell::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 264px; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 60% at 0% 0%, var(--wash-a), transparent 60%), radial-gradient(90% 50% at 0% 100%, var(--wash-b), transparent 60%), var(--bg-base); }
.fpt-shell[data-sb='closed']::before, .fpt-shell[data-size='tablet']::before, .fpt-shell[data-size='phone']::before { display: none; }
.fpt-sidebar { position: relative; z-index: 5; width: 264px; flex: 0 0 264px; display: flex; min-height: 0; overflow: hidden; border: 0;
  background: var(--mat-sidebar); -webkit-backdrop-filter: saturate(180%) blur(28px); backdrop-filter: saturate(180%) blur(28px); box-shadow: inset -0.5px 0 0 var(--sep);
  transition: width var(--d3) var(--ease-sheet), flex-basis var(--d3) var(--ease-sheet), opacity var(--d2); }
.fpt-sidebar[data-mode='closed'] { width: 0; flex-basis: 0; opacity: 0; pointer-events: none; }
.fpt-sidebar[data-mode='closed'] > * { visibility: hidden; }
.fpt-main { flex: 1 1 auto; min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 0 40px 96px; position: relative; background: var(--bg); box-shadow: -0.5px 0 0 var(--sep); }
.fpt-main[data-reading='true'] > .mantine-Stack-root > :not(.fpt-topbar) { width: 100%; max-width: 960px; margin-inline: auto; }
.fpt-main[data-wide='true'] > .mantine-Stack-root > :not(.fpt-topbar) { max-width: 1120px; }
.fpt-main > .mantine-Stack-root { animation: trio-pagein var(--d3) var(--ease) both; }

/* sidebar content */
.fpt-sb { display: flex; flex-direction: column; width: 100%; min-width: 264px; min-height: 0; height: 100%; padding: 14px 10px 10px; gap: 0; box-sizing: border-box; }
.fpt-sb-brand { display: flex; align-items: center; gap: 10px; min-height: 0; padding: 2px 8px 14px; font-weight: var(--fw-bold); font-size: var(--fs-base); letter-spacing: -0.014em; line-height: 1.2; }
.fpt-sb-brand img { width: 30px; height: 30px; flex: none; }
/* the logo comes in two squircles: graphite for the light UI, paper for the dark UI (see docs/design/brand/BRAND.md) */
.trio-logo[data-for='dark'] { display: none; }
html:root[data-mantine-color-scheme='dark'] .trio-logo[data-for='dark'] { display: block; }
html:root[data-mantine-color-scheme='dark'] .trio-logo[data-for='light'] { display: none; }
.fpt-sb-brand-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.fpt-sb-brand-name small { font-weight: var(--fw-regular); font-size: var(--fs-xs); color: var(--label-2); letter-spacing: 0; margin-top: -1px; }
.fpt-sb-top { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.fpt-sb-nav { display: flex; flex-direction: column; gap: 1px; width: 100%; }
.fpt-sb-nav h6 { margin: 14px 10px 4px; font-size: var(--fs-xs); line-height: 14px; font-weight: var(--fw-semibold); color: var(--label-2); letter-spacing: 0; }
.fpt-nav-item { position: relative; display: flex; align-items: center; gap: 10px; height: 32px; min-height: 32px; padding: 0 10px; border-radius: var(--r-md); font-size: var(--fs-base); font-weight: var(--fw-medium); color: var(--label); text-decoration: none; width: 100%; text-align: left; border: 0; background: transparent; cursor: default; font-family: inherit; letter-spacing: -0.006em; transition: background var(--d1); }
.fpt-nav-item:hover { background: var(--fill); text-decoration: none; }
.fpt-nav-item:active { background: var(--fill-2); }
.fpt-nav-item svg { color: var(--label-2); flex: none; }
.fpt-nav-item[data-active='true'] { background: var(--fill-2); color: var(--label); font-weight: var(--fw-semibold); }
.fpt-nav-item[data-active='true']::before { display: none; }
.fpt-nav-item[data-active='true'] svg { color: var(--label); }
.fpt-nav-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpt-nav-badge { margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: var(--r-sm); background: var(--orange-dot); color: #1d1d1f; font-size: var(--fs-xs); font-weight: var(--fw-bold); line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.fpt-sb-foot { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; width: 100%; padding-top: 8px; }
.fpt-kill { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-md); background: var(--red-soft); color: var(--red); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.fpt-warnrow { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-md); background: var(--orange-soft); color: var(--orange); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.fpt-me { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: var(--r-md); cursor: default; }
.fpt-me:hover { background: var(--fill); }
.fpt-me:focus-visible { outline: 2px solid var(--focus); outline-offset: -1px; }
.fpt-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#9a9aa3, #76767f); color: #fff; font-size: var(--fs-xs); font-weight: var(--fw-bold); flex: none; border: 0; }
.fpt-me b { display: block; font-size: var(--fs-sm); line-height: 16px; font-weight: var(--fw-semibold); }
.fpt-me small { display: block; font-size: var(--fs-xs); line-height: 14px; color: var(--label-2); }
.fpt-me-text { min-width: 0; flex: 1; }
.fpt-me-text > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the environment switcher: the honesty cue at the top */
.fpt-env { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; margin: 0 0 10px; border-radius: var(--r-md); background: var(--fill); cursor: default; transition: background var(--d1); text-align: left; }
.fpt-env:hover { background: var(--fill-2); }
.fpt-env:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.fpt-env-tile { width: 26px; height: 26px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); flex: none; }
.fpt-env[data-kind='fusion'] .fpt-env-tile { background: transparent; color: var(--label); box-shadow: inset 0 0 0 1px var(--label-2); }
.fpt-env-label { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: var(--fs-xs); line-height: 14px; }
.fpt-env-label > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpt-env-label b { font-weight: var(--fw-semibold); font-size: var(--fs-sm); line-height: 16px; color: var(--label); }
.fpt-env-label .fpt-env-sub { color: var(--orange); }
.fpt-env[data-kind='fusion'] .fpt-env-label .fpt-env-sub { color: var(--label-2); }
.fpt-env .fpt-env-chev { color: var(--label-3); flex: none; }

/* the toolbar: translucent, content scrolls under it */
.fpt-topbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 40px; margin: 0 -40px 28px;
  background: var(--mat-bar); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); border: 0; box-shadow: 0 0.5px 0 var(--sep); box-sizing: border-box; }
.fpt-topbar-left { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.fpt-title { font-size: var(--fs-md); line-height: 19px; font-weight: var(--fw-bold); letter-spacing: -0.014em; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpt-topbar-sub { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow: hidden; font-size: var(--fs-xs); line-height: 15px; color: var(--label-2); margin-top: 1px; min-width: 0; white-space: nowrap; }
.fpt-topbar-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; justify-content: flex-end; }
.fpt-search { position: relative; display: flex; align-items: center; height: 32px; width: 260px; padding: 0 10px 0 32px; border-radius: var(--r-pill); background: var(--fill); color: var(--label-2); font-size: var(--fs-base); cursor: text; border: 0; text-align: left; gap: 8px; transition: background var(--d1); flex: none; font-family: inherit; }
.fpt-search:hover { background: var(--fill-2); }
.fpt-search > svg { position: absolute; left: 10px; }
.fpt-search kbd { margin-left: auto; font: 500 11.5px var(--font); color: var(--label-2); padding: 1px 6px; border-radius: var(--r-sm); background: var(--fill); letter-spacing: 0; }
.fpt-crumb a { color: var(--accent-text); }
.fpt-nav-item, .fpt-back, .fpt-me, .fpt-env, .mantine-Button-root, .fpt-textlink, .fpt-linkbtn, .fpt-crumb a { text-decoration: none; }
.fpt-back { display: inline-flex; align-items: center; gap: 2px; color: var(--accent-text); font-weight: var(--fw-medium); font-size: var(--fs-base); text-decoration: none; margin-right: 4px; white-space: nowrap; }
.fpt-back:hover { text-decoration: underline; text-underline-offset: 2px; }
.fpt-savednotice { margin: 0 -40px; }
@media (max-width: 1279px) { .fpt-search { width: 36px; padding: 0; justify-content: center; } .fpt-search > svg { position: static; } .fpt-search span, .fpt-search kbd { display: none; } }
/* the sidebar is the same 264px at laptop widths; hidden means gone (the older laptop rule made it a 64px rail) */
.fpt-shell[data-size='laptop'] .fpt-sidebar { width: 264px; flex-basis: 264px; }
.fpt-shell[data-size] .fpt-sidebar[data-mode='closed'] { width: 0; flex-basis: 0; }
.fpt-sb-name { font-weight: var(--fw-bold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* run header: the caption never pushes the actions off; it ends in an ellipsis with the full text on hover */
.fpt-topbar-left { min-width: 180px; }
.fpt-topbar-caption { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpt-topbar-row1 { min-width: 0; }

/* ------------------------------------------------------------------ 4b. surfaces: cards and papers are separated by hairlines, not shadows */
.mantine-Card-root, .mantine-Paper-root[data-with-border='true'], .mantine-Paper-root.mantine-Card-root { border: 1px solid var(--sep); box-shadow: none; background: var(--bg-elev); }
.mantine-Card-root[data-with-border='true'] { border-color: var(--sep); }