:root{--accent:#a65732;--accent-soft:#f8ede4;--on-accent:#fff;--surface:#fff;--ink:#29312f;--muted:#66716d;--line:#e7e9e4;--tone-00000008:#00000008;--tone-0001:#0001;--tone-0002:#0002;--tone-17536b:#17536b;--tone-222:var(--ink);--tone-24180926:#24180926;--tone-24536a:#24536a;--tone-26170f:color-mix(in srgb,var(--accent) 30%,#16191c);--tone-277344:#277344;--tone-28231c55:#28231c55;--tone-285e31:#285e31;--tone-292925:var(--ink);--tone-29292512:#29292512;--tone-30280b:color-mix(in srgb,var(--accent) 30%,#16191c);--tone-302e2a:var(--ink);--tone-318658:#318658;--tone-333:var(--ink);--tone-33382e:var(--ink);--tone-343c30:var(--ink);--tone-375766:#375766;--tone-39362f:var(--ink);--tone-437b61:#437b61;--tone-43846b:#43846b;--tone-454b40:var(--ink);--tone-4c8260:#4c8260;--tone-51846b:#51846b;--tone-525948:var(--ink);--tone-555:var(--ink);--tone-56564a:var(--ink);--tone-565d4e:var(--ink);--tone-577b72:var(--muted);--tone-5b5b50:var(--ink);--tone-605b52:var(--ink);--tone-62818e:#62818e;--tone-633018:color-mix(in srgb,var(--accent) 30%,#16191c);--tone-64758a:var(--muted);--tone-66885c:#66885c;--tone-676a60:var(--muted);--tone-686254:var(--ink);--tone-6f815d:var(--muted);--tone-706b62:var(--muted);--tone-713614:color-mix(in srgb,var(--accent) 30%,#16191c);--tone-73776d:var(--muted);--tone-737f61:var(--muted);--tone-746c60:var(--muted);--tone-747268:var(--muted);--tone-767b6f:var(--muted);--tone-769251:#769251;--tone-777d72:var(--muted);--tone-778bab:#778bab;--tone-7a9068:var(--muted);--tone-7a926d:var(--muted);--tone-7a9979:var(--muted);--tone-7b7d73:var(--muted);--tone-7b886b:var(--muted);--tone-7b8e95:var(--muted);--tone-7b9b80:var(--muted);--tone-7c8a60:var(--muted);--tone-7d7596:var(--muted);--tone-7e5935:var(--accent);--tone-808574:var(--muted);--tone-808578:var(--muted);--tone-856408:color-mix(in srgb,var(--accent) 30%,#16191c);--tone-85867e:var(--muted);--tone-858c7b:var(--muted);--tone-867e6c:var(--muted);--tone-869abd:#869abd;--tone-86a597:var(--muted);--tone-89969a:var(--muted);--tone-8b7661:var(--muted);--tone-8b7861:var(--muted);--tone-8b897d:var(--muted);--tone-8b8c85:var(--muted);--tone-8ba17b:var(--muted);--tone-8c8a7f:var(--muted);--tone-8c8f80:var(--muted);--tone-8c9480:var(--muted);--tone-8d8276:var(--muted);--tone-8f8e83:var(--muted);--tone-8f9488:var(--muted);--tone-8faaa2:var(--muted);--tone-90c8dd:#90c8dd;--tone-919387:var(--muted);--tone-92958c:var(--muted);--tone-92b3a1:var(--muted);--tone-93958a:var(--muted);--tone-949489:var(--muted);--tone-94ae7a:#94ae7a;--tone-95998c:var(--muted);--tone-959b8f:var(--muted);--tone-96897e:var(--muted);--tone-96998a:var(--muted);--tone-96998e:var(--muted);--tone-969a8e:var(--muted);--tone-969c8e:var(--muted);--tone-97917f:var(--muted);--tone-979284:var(--muted);--tone-98a685:var(--muted);--tone-999:var(--muted);--tone-99968a:var(--muted);--tone-999786:var(--muted);--tone-999b8c:var(--muted);--tone-9a9f90:var(--muted);--tone-9b671e:var(--accent);--tone-9b6d24:var(--accent);--tone-9b7962:var(--accent);--tone-9b8061:var(--accent);--tone-9b9d91:var(--muted);--tone-9b9e90:var(--muted);--tone-9c9a8f:var(--muted);--tone-9c9f93:var(--muted);--tone-9e9d92:var(--muted);--tone-9fcba3:#9fcba3;--tone-a09b8d:var(--muted);--tone-a09b8e:var(--muted);--tone-a0a390:var(--muted);--tone-a0a394:var(--muted);--tone-a0a396:var(--muted);--tone-a17e3a:var(--accent);--tone-a1a396:var(--muted);--tone-a1a594:var(--muted);--tone-a28b6a:var(--accent);--tone-a28b72:var(--accent);--tone-a2a093:var(--muted);--tone-a2a49b:var(--muted);--tone-a394bb:#a394bb;--tone-a3a08f:var(--muted);--tone-a3a194:var(--muted);--tone-a3a49a:var(--muted);--tone-a3a697:var(--muted);--tone-a4a091:var(--muted);--tone-a4a094:var(--muted);--tone-a4a195:var(--muted);--tone-a4a294:var(--muted);--tone-a4a59b:var(--muted);--tone-a59e8d:var(--muted);--tone-a5a69b:var(--muted);--tone-a64f43:#a64f43;--tone-a6a294:var(--muted);--tone-a6a998:var(--muted);--tone-a7a99e:var(--muted);--tone-a84b35:var(--accent);--tone-a85637:var(--accent);--tone-a9d5b7:#a9d5b7;--tone-aaa08f:var(--muted);--tone-aaac9f:var(--muted);--tone-aabda5:var(--muted);--tone-ab8972:var(--accent);--tone-ac6552:var(--accent);--tone-ac773e:var(--accent);--tone-ad692f:var(--accent);--tone-ad7a8e:#ad7a8e;--tone-ad987b:var(--accent);--tone-b08429:var(--accent);--tone-b17a50:var(--accent);--tone-b1b7ad:var(--muted);--tone-b26e39:var(--accent);--tone-b27869:var(--accent);--tone-b2a495:var(--muted);--tone-b2b3aa:var(--muted);--tone-b2b4a7:var(--muted);--tone-b39a6d:var(--accent);--tone-b4b4aa:var(--muted);--tone-b4b7aa:var(--muted);--tone-b5a897:var(--muted);--tone-b5a8c8:#b5a8c8;--tone-b64e43:#b64e43;--tone-b6d7bf:#b6d7bf;--tone-b75222:var(--accent);--tone-b75e4e:var(--accent);--tone-b7843d:var(--accent);--tone-b85e3e:var(--accent);--tone-b95a27:var(--accent);--tone-b9b1cf:#b9b1cf;--tone-b9d8e8:#b9d8e8;--tone-bba78d:var(--accent);--tone-bbb4a9:var(--muted);--tone-bc764c:var(--accent);--tone-bd6961:#bd6961;--tone-bd7343:var(--accent);--tone-be8c7f:var(--accent);--tone-bf725e:var(--accent);--tone-bf7547:var(--accent);--tone-bf784c:var(--accent);--tone-bf9a77:var(--accent);--tone-c37447:var(--accent);--tone-c49673:var(--accent);--tone-c66d32:var(--accent);--tone-c78c60:var(--accent);--tone-c7d5b7:#c7d5b7;--tone-c7e8e2:#c7e8e2;--tone-c8ecfa:#c8ecfa;--tone-c9834e:var(--accent);--tone-cce5cd:#cce5cd;--tone-ce9c60:var(--accent);--tone-d0b9a8:var(--accent);--tone-d28b56:var(--accent);--tone-d3edd4:#d3edd4;--tone-d5b976:var(--accent);--tone-d5e5ff:#d5e5ff;--tone-d7c8b8:var(--accent);--tone-d87135:var(--accent);--tone-d9ded8:#d9ded8;--tone-d9dfd2:#d9dfd2;--tone-dc6b2e:var(--accent);--tone-dce7ed:#dce7ed;--tone-ddd:#ddd;--tone-ded9ce:var(--accent-soft);--tone-dedbd3:#dedbd3;--tone-dfa77e:var(--accent);--tone-dfc33b:#dfc33b;--tone-dfded5:#dfded5;--tone-dfe8d6:#dfe8d6;--tone-dfebe7:#dfebe7;--tone-dff1fa:#dff1fa;--tone-e0c7af:var(--accent);--tone-e0e5ee:#e0e5ee;--tone-e0e7d9:#e0e7d9;--tone-e1e5ee:#e1e5ee;--tone-e2ccbc:var(--accent-soft);--tone-e2ded5:var(--accent-soft);--tone-e3dfee:#e3dfee;--tone-e3e9ed:#e3e9ed;--tone-e4d9f8:#e4d9f8;--tone-e5eadf:#e5eadf;--tone-e5eae9:var(--line);--tone-e5f3e9:#e5f3e9;--tone-e5f5f3:#e5f5f3;--tone-e6c78f:var(--accent);--tone-e6e3dc:var(--line);--tone-e6e8e1:var(--line);--tone-e6e9df:#e6e9df;--tone-e6eade:#e6eade;--tone-e6eadf:#e6eadf;--tone-e7aa7d:var(--accent);--tone-e7dfd4:var(--accent-soft);--tone-e7ece3:#e7ece3;--tone-e8e1d7:var(--accent-soft);--tone-e8e4ef:#e8e4ef;--tone-e8ecdf:#e8ecdf;--tone-e9b98e:var(--accent);--tone-e9e3d8:var(--accent-soft);--tone-e9e4dc:var(--accent-soft);--tone-e9e6db:var(--accent-soft);--tone-e9e6df:var(--accent-soft);--tone-e9e8df:#e9e8df;--tone-e9e8e2:var(--line);--tone-e9edf6:#e9edf6;--tone-e9f5e9:#e9f5e9;--tone-ead4bb:var(--accent-soft);--tone-ead5bd:var(--accent-soft);--tone-eaf1e4:#eaf1e4;--tone-eaf2ff:#eaf2ff;--tone-ebe5da:var(--accent-soft);--tone-ec8748:var(--accent);--tone-ec945f:var(--accent);--tone-ecebe4:var(--line);--tone-ecebe5:var(--line);--tone-eceedd:#eceedd;--tone-ed793c:var(--accent);--tone-ed793c18:#ed793c18;--tone-ed8244:var(--accent);--tone-ed8845:var(--accent);--tone-ed945d:var(--accent);--tone-ed9564:var(--accent);--tone-ed9a6c:var(--accent);--tone-edcec8:var(--accent-soft);--tone-edf1e6:#edf1e6;--tone-edf1f8:#edf1f8;--tone-edf4ef:#edf4ef;--tone-edf6ef:#edf6ef;--tone-edf7ef:#edf7ef;--tone-eeb989:var(--accent);--tone-eee:var(--line);--tone-eee4d5:var(--accent-soft);--tone-eee4d8:var(--accent-soft);--tone-eee5da:var(--accent-soft);--tone-eee8df:var(--accent-soft);--tone-eeeae2:var(--accent-soft);--tone-eeebe4:var(--accent-soft);--tone-eeede7:var(--line);--tone-efb088:var(--accent);--tone-efeee7:#efeee7;--tone-f0e2d0:var(--accent-soft);--tone-f0e6d3:var(--accent-soft);--tone-f0ece2:var(--accent-soft);--tone-f0edf9:#f0edf9;--tone-f0eee6:#f0eee6;--tone-f0efe9:#f0efe9;--tone-f0f7f6:#f0f7f6;--tone-f1e6d7:var(--accent-soft);--tone-f1e6e1:var(--accent-soft);--tone-f1ede5:var(--accent-soft);--tone-f1f0eb:var(--line);--tone-f2edfc:#f2edfc;--tone-f2f0e9:var(--accent-soft);--tone-f3dcc44a:#f3dcc44a;--tone-f3e3d5:var(--accent-soft);--tone-f3e6d4:var(--accent-soft);--tone-f3f0ea:var(--accent-soft);--tone-f3f2ed:#f3f2ed;--tone-f3f3ef:var(--line);--tone-f3f5fb:#f3f5fb;--tone-f3f6f2:#f3f6f2;--tone-f3f6f8:#f3f6f8;--tone-f3f8fa:#f3f8fa;--tone-f4a2431c:#f4a2431c;--tone-f4f2ed:var(--accent-soft);--tone-f4f3ed:#f4f3ed;--tone-f4f3ef:var(--accent-soft);--tone-f4f6f0:#f4f6f0;--tone-f4f8ed:#f4f8ed;--tone-f5772c:var(--accent);--tone-f5bb77:var(--accent);--tone-f5dfac:var(--accent-soft);--tone-f5e8ed:#f5e8ed;--tone-f5eae0:var(--accent-soft);--tone-f5f5ef:#f5f5ef;--tone-f5f7f1:#f5f7f1;--tone-f5f7f2:#f5f7f2;--tone-f5f9fa:#f5f9fa;--tone-f5faf6:#f5faf6;--tone-f6c7a7:var(--accent-soft);--tone-f6f4ee:var(--accent-soft);--tone-f6f5fb:#f6f5fb;--tone-f6f8f2:#f6f8f2;--tone-f7e9d9:var(--accent-soft);--tone-f7f1e8:var(--accent-soft);--tone-f7f7f3:#f7f7f3;--tone-f8b98f:var(--accent);--tone-f8d2d2:#f8d2d2;--tone-f99b4f:var(--accent);--tone-f9ecdc:var(--accent-soft);--tone-f9f1e7:var(--accent-soft);--tone-f9f5ef:var(--accent-soft);--tone-f9f7f3:var(--accent-soft);--tone-faf2e9:var(--accent-soft);--tone-faf3e6:var(--accent-soft);--tone-faf7f0:var(--accent-soft);--tone-faf8f2:var(--accent-soft);--tone-faf9f6:var(--accent-soft);--tone-fafaf7:#fafaf7;--tone-fafbf7:#fafbf7;--tone-fafbf8:#fafbf8;--tone-fca44d0c:#fca44d0c;--tone-fcf5eb:var(--accent-soft);--tone-fcfaf6:var(--accent-soft);--tone-fcfbf8:var(--accent-soft);--tone-fcfcfa:#fcfcfa;--tone-fdf7ed:var(--accent-soft);--tone-ffa936:var(--accent);--tone-ffc18b:var(--accent);--tone-ffd3b5:var(--accent-soft);--tone-ffe45c:#ffe45c;--tone-ffeded:#ffeded;--tone-fff:var(--surface);--tone-fff0dc:var(--accent-soft);--tone-fff0e6:var(--accent-soft);--tone-fff0ee:#fff0ee;--tone-fff2e6:var(--accent-soft);--tone-fff3d9:var(--accent-soft);--tone-fff4dc:var(--accent-soft);--tone-fff4e9:var(--accent-soft);--tone-fff5ed:var(--accent-soft);--tone-fff6e7:var(--accent-soft);--tone-fff8f0:var(--accent-soft);--tone-fff9f7:var(--accent-soft);--tone-fffaf4:var(--accent-soft);--tone-fffbef:var(--accent-soft);--tone-fffcf8:var(--accent-soft);--tone-fffefb:var(--accent-soft);--tone-ffffffb8:#ffffffb8}
@media screen{
html[data-mode="dark"]{--accent:var(--accent-dark);--bg:#151b21;--surface:#1d252d;--ink:#e5ebe9;--muted:#b0bbb8;--line:#35414a;--accent-soft:color-mix(in srgb,var(--accent) 13%,#1d252d);--on-accent:#18201f;--tone-00000008:#00000008;--tone-0001:#0001;--tone-0002:#0002;--tone-17536b:hsl(197 30% 76%);--tone-222:var(--ink);--tone-24180926:#24180926;--tone-24536a:hsl(200 30% 76%);--tone-26170f:color-mix(in srgb,var(--accent) 30%,#16191c);--tone-277344:hsl(143 38% 74%);--tone-28231c55:hsla(35,30%,55%,0.333);--tone-285e31:hsl(130 30% 76%);--tone-292925:var(--ink);--tone-29292512:hsla(60,30%,55%,0.071);--tone-30280b:color-mix(in srgb,var(--accent) 30%,#16191c);--tone-302e2a:var(--ink);--tone-318658:hsl(148 38% 74%);--tone-333:var(--ink);--tone-33382e:var(--ink);--tone-343c30:var(--ink);--tone-375766:hsl(199 38% 74%);--tone-39362f:var(--ink);--tone-437b61:hsl(152 38% 74%);--tone-43846b:hsl(157 38% 74%);--tone-454b40:var(--ink);--tone-4c8260:hsl(142 38% 74%);--tone-51846b:hsl(151 38% 74%);--tone-525948:var(--ink);--tone-555:var(--ink);--tone-56564a:var(--ink);--tone-565d4e:var(--ink);--tone-577b72:var(--muted);--tone-5b5b50:var(--ink);--tone-605b52:var(--ink);--tone-62818e:hsl(198 38% 74%);--tone-633018:color-mix(in srgb,var(--accent) 30%,#16191c);--tone-64758a:var(--muted);--tone-66885c:hsl(106 38% 74%);--tone-676a60:var(--muted);--tone-686254:var(--ink);--tone-6f815d:var(--muted);--tone-706b62:var(--muted);--tone-713614:color-mix(in srgb,var(--accent) 30%,#16191c);--tone-73776d:var(--muted);--tone-737f61:var(--muted);--tone-746c60:var(--muted);--tone-747268:var(--muted);--tone-767b6f:var(--muted);--tone-769251:hsl(86 38% 74%);--tone-777d72:var(--muted);--tone-778bab:hsl(217 38% 74%);--tone-7a9068:var(--muted);--tone-7a926d:var(--muted);--tone-7a9979:var(--muted);--tone-7b7d73:var(--muted);--tone-7b886b:var(--muted);--tone-7b8e95:var(--muted);--tone-7b9b80:var(--muted);--tone-7c8a60:var(--muted);--tone-7d7596:var(--muted);--tone-7e5935:var(--accent);--tone-808574:var(--muted);--tone-808578:var(--muted);--tone-856408:color-mix(in srgb,var(--accent) 30%,#16191c);--tone-85867e:var(--muted);--tone-858c7b:var(--muted);--tone-867e6c:var(--muted);--tone-869abd:hsl(218 38% 74%);--tone-86a597:var(--muted);--tone-89969a:var(--muted);--tone-8b7661:var(--muted);--tone-8b7861:var(--muted);--tone-8b897d:var(--muted);--tone-8b8c85:var(--muted);--tone-8ba17b:var(--muted);--tone-8c8a7f:var(--muted);--tone-8c8f80:var(--muted);--tone-8c9480:var(--muted);--tone-8d8276:var(--muted);--tone-8f8e83:var(--muted);--tone-8f9488:var(--muted);--tone-8faaa2:var(--muted);--tone-90c8dd:hsl(196 38% 74%);--tone-919387:var(--muted);--tone-92958c:var(--muted);--tone-92b3a1:var(--muted);--tone-93958a:var(--muted);--tone-949489:var(--muted);--tone-94ae7a:hsl(90 38% 74%);--tone-95998c:var(--muted);--tone-959b8f:var(--muted);--tone-96897e:var(--muted);--tone-96998a:var(--muted);--tone-96998e:var(--muted);--tone-969a8e:var(--muted);--tone-969c8e:var(--muted);--tone-97917f:var(--muted);--tone-979284:var(--muted);--tone-98a685:var(--muted);--tone-999:var(--muted);--tone-99968a:var(--muted);--tone-999786:var(--muted);--tone-999b8c:var(--muted);--tone-9a9f90:var(--muted);--tone-9b671e:var(--accent);--tone-9b6d24:var(--accent);--tone-9b7962:var(--accent);--tone-9b8061:var(--accent);--tone-9b9d91:var(--muted);--tone-9b9e90:var(--muted);--tone-9c9a8f:var(--muted);--tone-9c9f93:var(--muted);--tone-9e9d92:var(--muted);--tone-9fcba3:hsl(125 38% 74%);--tone-a09b8d:var(--muted);--tone-a09b8e:var(--muted);--tone-a0a390:var(--muted);--tone-a0a394:var(--muted);--tone-a0a396:var(--muted);--tone-a17e3a:var(--accent);--tone-a1a396:var(--muted);--tone-a1a594:var(--muted);--tone-a28b6a:var(--accent);--tone-a28b72:var(--accent);--tone-a2a093:var(--muted);--tone-a2a49b:var(--muted);--tone-a394bb:hsl(263 38% 74%);--tone-a3a08f:var(--muted);--tone-a3a194:var(--muted);--tone-a3a49a:var(--muted);--tone-a3a697:var(--muted);--tone-a4a091:var(--muted);--tone-a4a094:var(--muted);--tone-a4a195:var(--muted);--tone-a4a294:var(--muted);--tone-a4a59b:var(--muted);--tone-a59e8d:var(--muted);--tone-a5a69b:var(--muted);--tone-a64f43:hsl(7 38% 74%);--tone-a6a294:var(--muted);--tone-a6a998:var(--muted);--tone-a7a99e:var(--muted);--tone-a84b35:var(--accent);--tone-a85637:var(--accent);--tone-a9d5b7:hsl(139 38% 74%);--tone-aaa08f:var(--muted);--tone-aaac9f:var(--muted);--tone-aabda5:var(--muted);--tone-ab8972:var(--accent);--tone-ac6552:var(--accent);--tone-ac773e:var(--accent);--tone-ad692f:var(--accent);--tone-ad7a8e:hsl(336 38% 74%);--tone-ad987b:var(--accent);--tone-b08429:var(--accent);--tone-b17a50:var(--accent);--tone-b1b7ad:var(--muted);--tone-b26e39:var(--accent);--tone-b27869:var(--accent);--tone-b2a495:var(--muted);--tone-b2b3aa:var(--muted);--tone-b2b4a7:var(--muted);--tone-b39a6d:var(--accent);--tone-b4b4aa:var(--muted);--tone-b4b7aa:var(--muted);--tone-b5a897:var(--muted);--tone-b5a8c8:hsl(264 38% 74%);--tone-b64e43:hsl(6 38% 74%);--tone-b6d7bf:hsl(136 38% 74%);--tone-b75222:var(--accent);--tone-b75e4e:var(--accent);--tone-b7843d:var(--accent);--tone-b85e3e:var(--accent);--tone-b95a27:var(--accent);--tone-b9b1cf:hsl(256 38% 74%);--tone-b9d8e8:hsl(200 22% 20%);--tone-bba78d:var(--accent);--tone-bbb4a9:var(--muted);--tone-bc764c:var(--accent);--tone-bd6961:hsl(5 38% 74%);--tone-bd7343:var(--accent);--tone-be8c7f:var(--accent);--tone-bf725e:var(--accent);--tone-bf7547:var(--accent);--tone-bf784c:var(--accent);--tone-bf9a77:var(--accent);--tone-c37447:var(--accent);--tone-c49673:var(--accent);--tone-c66d32:var(--accent);--tone-c78c60:var(--accent);--tone-c7d5b7:hsl(88 38% 74%);--tone-c7e8e2:hsl(169 22% 20%);--tone-c8ecfa:hsl(197 22% 20%);--tone-c9834e:var(--accent);--tone-cce5cd:hsl(122 22% 20%);--tone-ce9c60:var(--accent);--tone-d0b9a8:var(--accent);--tone-d28b56:var(--accent);--tone-d3edd4:hsl(122 22% 20%);--tone-d5b976:var(--accent);--tone-d5e5ff:hsl(217 22% 20%);--tone-d7c8b8:var(--accent);--tone-d87135:var(--accent);--tone-d9ded8:var(--muted);--tone-d9dfd2:var(--muted);--tone-dc6b2e:var(--accent);--tone-dce7ed:hsl(201 22% 20%);--tone-ddd:var(--muted);--tone-ded9ce:var(--accent-soft);--tone-dedbd3:var(--muted);--tone-dfa77e:var(--accent);--tone-dfc33b:hsl(50 38% 74%);--tone-dfded5:var(--muted);--tone-dfe8d6:hsl(90 22% 20%);--tone-dfebe7:hsl(160 22% 20%);--tone-dff1fa:hsl(200 22% 20%);--tone-e0c7af:var(--accent);--tone-e0e5ee:hsl(219 22% 20%);--tone-e0e7d9:hsl(90 22% 20%);--tone-e1e5ee:hsl(222 22% 20%);--tone-e2ccbc:var(--accent-soft);--tone-e2ded5:var(--accent-soft);--tone-e3dfee:hsl(256 22% 20%);--tone-e3e9ed:hsl(204 22% 20%);--tone-e4d9f8:hsl(261 22% 20%);--tone-e5eadf:hsl(87 22% 20%);--tone-e5eae9:var(--line);--tone-e5f3e9:hsl(137 22% 20%);--tone-e5f5f3:hsl(172 22% 20%);--tone-e6c78f:var(--accent);--tone-e6e3dc:var(--line);--tone-e6e8e1:var(--line);--tone-e6e9df:hsl(78 22% 20%);--tone-e6eade:hsl(80 22% 20%);--tone-e6eadf:hsl(82 22% 20%);--tone-e7aa7d:var(--accent);--tone-e7dfd4:var(--accent-soft);--tone-e7ece3:hsl(93 22% 20%);--tone-e8e1d7:var(--accent-soft);--tone-e8e4ef:hsl(262 22% 20%);--tone-e8ecdf:hsl(78 22% 20%);--tone-e9b98e:var(--accent);--tone-e9e3d8:var(--accent-soft);--tone-e9e4dc:var(--accent-soft);--tone-e9e6db:var(--accent-soft);--tone-e9e6df:var(--accent-soft);--tone-e9e8df:hsl(54 22% 20%);--tone-e9e8e2:var(--line);--tone-e9edf6:hsl(222 22% 20%);--tone-e9f5e9:hsl(120 22% 20%);--tone-ead4bb:var(--accent-soft);--tone-ead5bd:var(--accent-soft);--tone-eaf1e4:hsl(92 22% 20%);--tone-eaf2ff:hsl(217 22% 20%);--tone-ebe5da:var(--accent-soft);--tone-ec8748:var(--accent);--tone-ec945f:var(--accent);--tone-ecebe4:var(--line);--tone-ecebe5:var(--line);--tone-eceedd:hsl(67 22% 20%);--tone-ed793c:var(--accent);--tone-ed793c18:hsla(21,30%,55%,0.094);--tone-ed8244:var(--accent);--tone-ed8845:var(--accent);--tone-ed945d:var(--accent);--tone-ed9564:var(--accent);--tone-ed9a6c:var(--accent);--tone-edcec8:var(--accent-soft);--tone-edf1e6:hsl(82 22% 20%);--tone-edf1f8:hsl(218 22% 20%);--tone-edf4ef:hsl(137 22% 20%);--tone-edf6ef:hsl(133 22% 20%);--tone-edf7ef:hsl(132 22% 20%);--tone-eeb989:var(--accent);--tone-eee:var(--line);--tone-eee4d5:var(--accent-soft);--tone-eee4d8:var(--accent-soft);--tone-eee5da:var(--accent-soft);--tone-eee8df:var(--accent-soft);--tone-eeeae2:var(--accent-soft);--tone-eeebe4:var(--accent-soft);--tone-eeede7:var(--line);--tone-efb088:var(--accent);--tone-efeee7:hsl(53 22% 20%);--tone-f0e2d0:var(--accent-soft);--tone-f0e6d3:var(--accent-soft);--tone-f0ece2:var(--accent-soft);--tone-f0edf9:hsl(255 22% 20%);--tone-f0eee6:hsl(48 22% 20%);--tone-f0efe9:hsl(51 22% 20%);--tone-f0f7f6:hsl(171 22% 20%);--tone-f1e6d7:var(--accent-soft);--tone-f1e6e1:var(--accent-soft);--tone-f1ede5:var(--accent-soft);--tone-f1f0eb:var(--line);--tone-f2edfc:hsl(260 22% 20%);--tone-f2f0e9:var(--accent-soft);--tone-f3dcc44a:rgba(120,140,160,0.290);--tone-f3e3d5:var(--accent-soft);--tone-f3e6d4:var(--accent-soft);--tone-f3f0ea:var(--accent-soft);--tone-f3f2ed:hsl(50 22% 20%);--tone-f3f3ef:var(--line);--tone-f3f5fb:hsl(225 22% 20%);--tone-f3f6f2:hsl(105 22% 20%);--tone-f3f6f8:hsl(204 22% 20%);--tone-f3f8fa:hsl(197 22% 20%);--tone-f4a2431c:hsla(32,30%,55%,0.110);--tone-f4f2ed:var(--accent-soft);--tone-f4f3ed:hsl(51 22% 20%);--tone-f4f3ef:var(--accent-soft);--tone-f4f6f0:hsl(80 22% 20%);--tone-f4f8ed:hsl(82 22% 20%);--tone-f5772c:var(--accent);--tone-f5bb77:var(--accent);--tone-f5dfac:var(--accent-soft);--tone-f5e8ed:hsl(337 22% 20%);--tone-f5eae0:var(--accent-soft);--tone-f5f5ef:hsl(60 22% 20%);--tone-f5f7f1:hsl(80 22% 20%);--tone-f5f7f2:hsl(84 22% 20%);--tone-f5f9fa:hsl(192 22% 20%);--tone-f5faf6:hsl(132 22% 20%);--tone-f6c7a7:var(--accent-soft);--tone-f6f4ee:var(--accent-soft);--tone-f6f5fb:hsl(250 22% 20%);--tone-f6f8f2:hsl(80 22% 20%);--tone-f7e9d9:var(--accent-soft);--tone-f7f1e8:var(--accent-soft);--tone-f7f7f3:hsl(60 22% 20%);--tone-f8b98f:var(--accent);--tone-f8d2d2:hsl(0 22% 20%);--tone-f99b4f:var(--accent);--tone-f9ecdc:var(--accent-soft);--tone-f9f1e7:var(--accent-soft);--tone-f9f5ef:var(--accent-soft);--tone-f9f7f3:var(--accent-soft);--tone-faf2e9:var(--accent-soft);--tone-faf3e6:var(--accent-soft);--tone-faf7f0:var(--accent-soft);--tone-faf8f2:var(--accent-soft);--tone-faf9f6:var(--accent-soft);--tone-fafaf7:hsl(60 22% 20%);--tone-fafbf7:hsl(75 22% 20%);--tone-fafbf8:hsl(80 22% 20%);--tone-fca44d0c:hsla(30,30%,55%,0.047);--tone-fcf5eb:var(--accent-soft);--tone-fcfaf6:var(--accent-soft);--tone-fcfbf8:var(--accent-soft);--tone-fcfcfa:hsl(60 22% 20%);--tone-fdf7ed:var(--accent-soft);--tone-ffa936:var(--accent);--tone-ffc18b:var(--accent);--tone-ffd3b5:var(--accent-soft);--tone-ffe45c:hsl(50 38% 74%);--tone-ffeded:hsl(0 22% 20%);--tone-fff:var(--surface);--tone-fff0dc:var(--accent-soft);--tone-fff0e6:var(--accent-soft);--tone-fff0ee:hsl(7 22% 20%);--tone-fff2e6:var(--accent-soft);--tone-fff3d9:var(--accent-soft);--tone-fff4dc:var(--accent-soft);--tone-fff4e9:var(--accent-soft);--tone-fff5ed:var(--accent-soft);--tone-fff6e7:var(--accent-soft);--tone-fff8f0:var(--accent-soft);--tone-fff9f7:var(--accent-soft);--tone-fffaf4:var(--accent-soft);--tone-fffbef:var(--accent-soft);--tone-fffcf8:var(--accent-soft);--tone-fffefb:var(--accent-soft);--tone-ffffffb8:rgba(120,140,160,0.722)}

html{color-scheme:light}html[data-mode="dark"]{color-scheme:dark}
body{background:var(--bg);color:var(--ink)}.primary{background:var(--accent);color:var(--on-accent)}.primary:hover{background:color-mix(in srgb,var(--accent) 88%,var(--ink))}.secondary{background:var(--surface)}.secondary:hover{background:var(--accent-soft)}.sidebar,.topbar,dialog,.formfoot,input,select,textarea{background-color:var(--surface);color:var(--ink)}input,select,textarea{border-color:var(--line)}input::placeholder,textarea::placeholder{color:var(--muted)}.welcome{background:var(--bg)}.welcome-art{color:#fff}.welcome-art .brand{color:#fff}.welcome-art .brand-caption{color:#e6d4c5}.welcome-art .brand-logo{filter:brightness(0) invert(1)}html[data-mode="dark"] .sidebar .brand img{filter:brightness(0) invert(1)}html[data-mode="dark"] .welcome-form{background:var(--bg)}html[data-mode="dark"] dialog::backdrop{background:#0009}.icon{color:inherit}a:focus-visible,button:focus-visible{outline-color:var(--accent)}input:focus,textarea:focus,select:focus{outline-color:var(--accent)}input[type="checkbox"],input[type="radio"]{accent-color:var(--accent)}
.appearance-trigger{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-weight:700;white-space:nowrap}.appearance-dot{width:12px;height:12px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.appearance-intro{color:var(--muted);max-width:48ch}.appearance-palettes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.palette-choice{border:2px solid var(--line);border-radius:13px;padding:10px;min-width:0;text-align:left;background:var(--surface);display:grid;gap:9px}.palette-choice[aria-checked="true"]{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.palette-mini{display:grid;grid-template-columns:18% 1fr;height:64px;border-radius:7px;overflow:hidden;background:var(--preview-bg)}.palette-mini aside{background:var(--preview-soft);border-right:1px solid #0001}.palette-mini section{padding:9px;display:grid;gap:5px}.palette-mini i{display:block;height:5px;background:var(--preview-accent);border-radius:4px;width:55%}.palette-mini b{background:#ffffffb3;border:1px solid #0001;border-radius:4px}.palette-choice span{font-weight:700;font-size:calc(12px + var(--font-step,0px));display:flex;justify-content:space-between;align-items:center}.palette-check{opacity:0}.palette-choice[aria-checked="true"] .palette-check{opacity:1;color:var(--accent)}.appearance-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.appearance-mode{border:1px solid var(--line);padding:12px;border-radius:11px;background:var(--surface);font-weight:700}.appearance-mode[aria-checked="true"]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.appearance-note{border:1px solid var(--line);border-radius:10px;padding:12px;color:var(--muted);font-size:calc(12px + var(--font-step,0px))}.appearance-section{display:grid;gap:12px}
@media(max-width:650px){.appearance-palettes{grid-template-columns:repeat(2,minmax(0,1fr))}.appearance-trigger .appearance-label{display:none}.appearance-modes{gap:5px}.appearance-mode{padding:10px 6px}}
}

@media screen{.search{background:var(--surface)}thead th{background:color-mix(in srgb,var(--accent) 6%,var(--surface));color:var(--ink)}html[data-mode="dark"] thead th{background:#28323b!important;color:var(--ink)!important}html[data-mode="dark"] .sidebar .brand-symbol,html[data-mode="dark"] .sidebar .brand-wordmark{filter:grayscale(1) contrast(10) invert(1);mix-blend-mode:screen}html[data-mode="dark"] .search{background:var(--surface)} }

@media screen{
.leave-hub-nav{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);margin:0 0 24px;overflow-x:auto;padding:0 0 8px}.leave-hub-nav>button{display:inline-flex;align-items:center;gap:7px;padding:11px 15px;border-radius:9px;font-weight:700;white-space:nowrap;color:var(--muted)}.leave-hub-nav>button.active{color:var(--accent);background:var(--accent-soft)}.leave-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.leave-summary-card{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:20px;border:1px solid var(--line);border-radius:15px;background:var(--surface)}.leave-summary-card>div{min-width:0}.leave-summary-card span{color:var(--muted);font-size:calc(11px + var(--font-step,0px))}.leave-summary-card strong{display:block;margin:9px 0 6px;font-size:calc(24px + var(--font-step,0px));letter-spacing:-.7px;white-space:nowrap}.leave-summary-card small{font-size:calc(10px + var(--font-step,0px));display:block}.leave-summary-card>.icon{width:23px;height:23px;color:var(--accent);opacity:.65;margin-top:3px}.leave-summary-card.tone-3{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 22%,var(--line))}.leave-personal-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);align-items:start;gap:20px}.leave-personal-grid .cardhead{align-items:flex-start}.leave-personal-grid th,.leave-personal-grid td{padding:13px 14px}.leave-personal-grid th{font-size:calc(10px + var(--font-step,0px))}.leave-personal-grid td{font-size:calc(12px + var(--font-step,0px))}.leave-credit-text{white-space:normal;overflow-wrap:anywhere;min-width:120px}.leave-credit-scroll{max-height:640px;overflow:auto}.leave-credit-scroll thead{position:sticky;top:0;z-index:1}.leave-status-choice{font-size:calc(10px + var(--font-step,0px));display:flex;align-items:center;gap:7px;color:var(--muted)}.leave-status-choice select{padding:6px 8px;font-size:calc(11px + var(--font-step,0px));width:auto;min-width:105px}.leave-today{display:flex;align-items:center;gap:13px;padding:17px 20px;border:1px solid var(--line);border-radius:13px;background:var(--surface);margin:20px 0}.leave-today-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--accent-soft);color:var(--accent);flex-shrink:0}.leave-today p{font-size:calc(11px + var(--font-step,0px));color:var(--muted);margin-top:3px}.leave-today>.linkbtn{margin-left:auto;white-space:nowrap}.leave-personal-grid .cardfooter{gap:10px;flex-wrap:wrap}.leave-summary-grid+.appearance-note{margin-bottom:18px}
@media(max-width:1200px){.leave-personal-grid{grid-template-columns:1fr}.leave-summary-card{padding:15px}.leave-summary-card strong{font-size:calc(20px + var(--font-step,0px))}.leave-summary-card>.icon{display:none}.leave-credit-scroll{max-height:400px}}@media(max-width:720px){.leave-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.leave-today{flex-wrap:wrap}.leave-today>.linkbtn{margin-left:51px}.leave-hub-nav>button{padding:9px 11px}.leave-personal-grid .cardhead{flex-wrap:wrap}}
}

@media screen{.leave-history-card>.cardhead{background:color-mix(in srgb,var(--accent) 14%,var(--surface));border-bottom:1px solid color-mix(in srgb,var(--accent) 24%,var(--line))}.leave-entitlement-card>.cardhead{background:color-mix(in srgb,#51846b 14%,var(--surface));border-bottom:1px solid color-mix(in srgb,#51846b 24%,var(--line))}.leave-personal-grid .cardhead h2{color:var(--ink)}.leave-personal-grid th:not(:last-child),.leave-personal-grid td:not(:last-child){border-right:1px solid var(--line)}html[data-mode="dark"] .leave-history-card>.cardhead{background:color-mix(in srgb,var(--accent) 18%,var(--surface))}html[data-mode="dark"] .leave-entitlement-card>.cardhead{background:color-mix(in srgb,#51846b 24%,var(--surface))}}

.leave-pending-count{color:var(--accent);font-weight:800;background:var(--accent-soft);border-radius:6px;padding:2px 6px}

.leave-team-card th:not(:last-child),.leave-team-card td:not(:last-child){border-right:1px solid var(--line)}.leave-pagehead{flex-wrap:wrap}.leave-pagehead>div:first-child{flex:1 0 220px}.leave-pagehead .head-actions{flex:0 1 auto;flex-wrap:wrap;max-width:100%;justify-content:flex-end}

:root{--font-step:0px}@media screen{:root{--font-step:1px}}

.leave-sort-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;text-align:left;cursor:pointer}.leave-sort-heading span{opacity:.65}.leave-sort-heading:hover{color:var(--accent)}
/* Shared header rhythm keeps the two leave tables aligned. */
@media screen and (min-width:1201px){.leave-personal-grid>.card>.cardhead{box-sizing:border-box;min-height:110px;padding:22px 23px;align-items:flex-start}.leave-personal-grid>.card>.cardhead h2{line-height:28px;margin:0;min-height:28px}.leave-personal-grid>.card>.cardhead p{line-height:20px;margin:4px 0 0}.leave-personal-grid .leave-status-choice{margin-top:0;min-height:32px}}
@media screen{.leave-hub-nav{padding:5px;gap:5px;border:1px solid var(--line);border-radius:13px;background:color-mix(in srgb,var(--ink) 3%,var(--surface));box-shadow:inset 0 1px 2px color-mix(in srgb,var(--ink) 3%,transparent)}.leave-hub-nav>button{position:relative;border:1px solid transparent;border-radius:9px;padding:11px 17px;transition:background .15s,color .15s,box-shadow .15s}.leave-hub-nav>button:hover{background:color-mix(in srgb,var(--surface) 65%,transparent);color:var(--ink)}.leave-hub-nav>button.active{background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:0 2px 5px color-mix(in srgb,var(--ink) 7%,transparent)}.leave-hub-nav>button.active:after{content:'';position:absolute;bottom:0;left:17px;right:17px;height:2px;border-radius:2px;background:var(--accent)}.leave-hub-nav>button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}}

.permission-group-nav{margin-top:22px}.permission-group-count{font-size:.8em;opacity:.6;font-weight:500;margin-left:3px}.permission-group-card>.cardhead{padding:16px 23px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--accent) 5%,var(--surface))}.permission-group-card>.cardhead h2{font-size:calc(15px + var(--font-step,0px));margin:0}.permission-group-card .permission-details{margin:8px 0}

.permission-table .permission-unavailable{background:color-mix(in srgb,var(--ink) 2%,var(--surface));color:color-mix(in srgb,var(--muted) 38%,var(--surface));text-align:center;cursor:not-allowed}.permission-operation-row td:first-child strong{font-weight:500}

.permission-selectors{position:sticky;top:0;z-index:20;margin:22px 0 12px!important;padding:17px 22px!important;box-shadow:0 3px 12px color-mix(in srgb,var(--ink) 7%,transparent);border-color:color-mix(in srgb,var(--accent) 25%,var(--line))!important}.permission-selectors select{font-size:calc(16px + var(--font-step,0px));font-weight:700}.permission-selectors label{font-size:calc(11px + var(--font-step,0px))}.leave-mail-flow{margin-bottom:22px}.leave-mail-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:22px}.leave-mail-steps article{padding:19px;background:var(--bg);border:1px solid var(--line);border-radius:12px}.leave-mail-steps h3{font-size:calc(14px + var(--font-step,0px));margin:13px 0 8px}.leave-mail-steps p{color:var(--muted);line-height:1.7;min-height:45px;margin-bottom:16px}.leave-mail-preview{border:0;width:100%;height:72vh;background:#f5f5f2;display:block}.leave-mail-log{padding:16px 22px}.leave-mail-log summary{cursor:pointer;margin-bottom:12px}@media(max-width:850px){.leave-mail-steps{grid-template-columns:1fr}.permission-selectors select{font-size:14px}}

.leave-approval-timeline{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.leave-approval-timeline h3{margin:0 0 12px}.leave-approval-step{display:flex;gap:12px;align-items:flex-start;padding:10px 0}.leave-approval-step+.leave-approval-step{border-top:1px solid var(--line)}.leave-approval-step small{display:block;margin-top:4px}

.calendar-scope-editor{display:grid;gap:12px;padding:12px 0;max-width:900px}.calendar-scope-editor>label{display:grid;gap:10px;max-width:390px}.calendar-scope-editor select{width:100%}.calendar-scope-editor small{line-height:1.6;color:var(--muted)}.calendar-scope-malls{display:flex;flex-wrap:wrap;gap:12px 20px}.calendar-scope-malls label{display:flex;align-items:center;gap:8px}

/* Compact sidebar identity; login branding keeps its own layout. */
.sidebar .brand{height:38px;min-height:38px;margin:4px 0 16px;gap:0;justify-content:center;align-items:center}.sidebar .brand-symbol,.sidebar .brand small{display:none}.sidebar .brand-wordmark{width:192px;height:17px;background-size:295px 87px;background-position:-80px -29px}.sidebar .custom-brand img{max-height:36px;max-width:200px;object-fit:contain}.sidebar .workspace-switch{margin-top:0}

.calendar-scope-editor{white-space:normal;font-size:14px}.calendar-scope-editor small{white-space:normal;display:block;max-width:750px;font-size:12px}.calendar-scope-editor select{font-size:14px}.calendar-scope-malls input{width:17px;height:17px}

/* Keep the workspace card level with the main header’s lower edge. */
.sidebar{padding-top:16px}.sidebar .brand{height:46px;min-height:46px;margin:0 0 16px;gap:4px}.sidebar .brand small{display:block;align-self:flex-end;margin:0 max(0px,calc((100% - 192px)/2)) 0 0;font-size:8px;letter-spacing:1.6px;line-height:1.3;color:var(--muted)}
@media(max-width:700px){.sidebar .brand{margin-bottom:3px}}

.workspace-switch small{font-size:calc(10px + var(--font-step,0px))}

.nav-accordion{flex-shrink:0}.nav-accordion>summary.navlabel{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;list-style:none;user-select:none;padding-right:12px}.nav-accordion>summary::-webkit-details-marker{display:none}.nav-accordion>summary .icon{width:13px;height:13px;flex-shrink:0;transition:transform .16s ease}.nav-accordion:not([open])>summary .icon{transform:rotate(-90deg)}.nav-accordion:not([open])>summary{margin-bottom:0}.nav-accordion>summary:hover{color:var(--ink)}.nav-accordion>summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:4px}@media(prefers-reduced-motion:reduce){.nav-accordion>summary .icon{transition:none}}
.purchase-tabs{margin-bottom:24px}.purchase-stats{display:grid;grid-template-columns:1fr 1.6fr 1fr 1fr;gap:16px;margin:0 0 22px}.purchase-stats article{padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:16px;display:flex;flex-direction:column;gap:10px}.purchase-stats article>span,.purchase-stats small{font-size:12px;color:var(--muted)}.purchase-stats strong{font-size:28px;letter-spacing:-.6px}.purchase-multitotal{display:flex;flex-direction:column;gap:5px}.purchase-multitotal span{font-size:22px;white-space:nowrap}.purchase-filters{padding:20px;display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:16px;margin-bottom:22px}.purchase-filters label{display:grid;gap:8px;font-size:12px;color:var(--muted)}.purchase-filters input,.purchase-filters select{width:100%;min-width:0;height:43px;font-size:13px}.purchase-filters .linkbtn{align-self:end;min-height:43px}.purchase-search{grid-column:span 1}.purchase-table td{vertical-align:middle}.purchase-table td small{display:block;color:var(--muted);font-size:11px;margin-top:6px;white-space:normal}.purchase-title{text-align:left;max-width:230px;white-space:normal;font-weight:700!important;line-height:1.6}.purchase-money{font-weight:700;white-space:nowrap}.purchase-table th+th,.purchase-table td+td{border-left:1px solid var(--line)}.purchase-badge{display:inline-flex;padding:5px 9px;font-size:11px;font-weight:700;border-radius:7px;background:var(--accent-soft);white-space:nowrap}.purchase-badge.status-approved,.purchase-badge.status-received{background:#eaf4ee;color:#447a61}.purchase-badge.status-rejected,.purchase-badge.status-cancelled{background:#f9eeeb;color:#a55f53}.purchase-badge.status-ordered,.purchase-badge.status-partial{background:#edf2f8;color:#587795}.purchase-badge.status-draft{background:var(--bg);color:var(--muted)}.purchase-approval-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.purchase-approval-card{padding:26px;display:flex;flex-direction:column}.purchase-approval-card>.row{justify-content:space-between}.purchase-number,.purchase-age{font-size:11px;color:var(--muted)}.purchase-approval-card h2{font-size:20px;line-height:1.4;margin:18px 0 10px}.purchase-approval-card>p{font-size:13px;color:var(--muted);line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:44px}.purchase-decision-total{background:var(--accent-soft);padding:20px;border-radius:13px;margin:20px 0}.purchase-decision-total small{display:block;color:var(--muted);margin-bottom:8px}.purchase-decision-total strong{font-size:29px;letter-spacing:-.7px}.purchase-approval-card dl{margin:0}.purchase-approval-card dl>div{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid var(--line);font-size:12px}.purchase-approval-card dt{color:var(--muted)}.purchase-approval-card dd{margin:0;text-align:right;max-width:65%;font-weight:600}.purchase-card-footer{margin-top:auto;padding-top:22px;display:flex;justify-content:space-between;align-items:center;gap:12px}.purchase-card-footer>span{font-size:12px;color:var(--muted)}.purchase-callout{padding:15px 17px;background:var(--accent-soft);border:1px solid var(--line);border-radius:10px;font-size:12px;line-height:1.7;margin:16px 0}.purchase-mail-panel{margin-top:24px;padding:20px}.purchase-mail-panel>summary{cursor:pointer;font-weight:600}.purchase-panel-body{padding-top:18px}.purchase-panel-body .row{flex-wrap:wrap}.purchase-panel-body a{color:var(--ink);text-decoration:none}.purchase-panel-body .formhint{margin:18px 0}.purchase-form-body{gap:20px}.purchase-form-body label{font-size:13px}.purchase-form-body input,.purchase-form-body select{font-size:14px}.purchase-item-editor{display:grid;grid-template-columns:2fr .8fr .8fr 1fr .6fr 32px;gap:10px;padding:16px;border:1px solid var(--line);border-radius:12px;margin-bottom:12px;align-items:end}.purchase-item-editor input{width:100%;min-width:0;padding:10px;font-size:13px}.purchase-item-editor label{min-width:0;display:grid;gap:8px;font-size:11px}.purchase-item-editor .purchase-item-name{grid-column:1/-1}.purchase-item-editor>label:not(.purchase-item-name){grid-column:auto}.purchase-item-editor{grid-template-columns:1fr 1fr 1.4fr .8fr 32px}.purchase-item-editor .meter-icon-button{height:33px;width:32px;margin-bottom:2px}.purchase-section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.purchase-section-heading>span{font-size:11px;color:var(--muted)}.purchase-quote-editor{padding:18px;border:1px solid var(--line);border-radius:12px;display:grid;gap:15px}.purchase-radio{display:flex!important;align-items:center;gap:8px;font-size:12px!important}.purchase-radio input{width:16px!important;min-width:16px;height:16px;padding:0}.purchase-form-total{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;background:var(--accent-soft);border-radius:12px;padding:18px}.purchase-form-total span{font-size:11px;color:var(--muted)}.purchase-form-total strong{display:block;margin-top:8px;font-size:15px;color:var(--ink)}.purchase-detail-body{gap:22px}.purchase-detail-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.purchase-detail-top small{color:var(--muted);font-size:12px}.purchase-detail-body>h2{font-size:23px;line-height:1.4}.purchase-detail-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;background:var(--bg);padding:18px;border-radius:12px}.purchase-detail-facts span{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.purchase-detail-facts strong{font-size:14px}.purchase-detail-reason{padding:18px;border:1px solid var(--line);border-radius:12px}.purchase-detail-reason p{white-space:pre-wrap;font-size:14px;line-height:1.7;margin-top:9px;color:var(--muted)}.purchase-decision-box{padding:22px;border:1px solid color-mix(in srgb,var(--accent) 25%,var(--line));background:var(--accent-soft);border-radius:14px;display:grid;gap:15px}.purchase-decision-box strong{font-size:16px}.purchase-decision-box p{font-size:12px;line-height:1.7;margin-top:8px}.purchase-decision-box .row{flex-wrap:wrap}.purchase-reject{color:#ab5d50;background:var(--surface);border:1px solid #dfb7ad}.purchase-totals-line{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:15px;font-size:12px}.purchase-quotes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.purchase-quotes article{padding:18px;border:1px solid var(--line);border-radius:12px}.purchase-quotes article.selected{background:var(--accent-soft);border-color:var(--accent)}.purchase-quotes span,.purchase-quotes small{display:block;font-size:11px;color:var(--muted)}.purchase-quotes h4{font-size:14px;margin:12px 0}.purchase-quotes strong{font-size:19px;display:block;margin-bottom:8px}.purchase-quotes p{font-size:12px;line-height:1.6;margin-top:12px}.purchase-file-list{display:flex;flex-wrap:wrap;gap:10px}.purchase-file-list a{font-size:12px;white-space:normal;word-break:break-word;text-decoration:none;color:var(--ink)}.purchase-upload{display:grid;gap:10px;padding:17px;border:1px dashed var(--line);border-radius:12px;font-size:13px}.purchase-upload small{color:var(--muted);font-size:11px}.purchase-steps{padding:0;list-style:none}.purchase-steps li{display:flex;gap:13px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--line)}.purchase-steps li>span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--accent-soft);font-size:12px}.purchase-steps strong{font-size:14px}.purchase-steps small{display:block;color:var(--muted);margin-top:6px;font-size:11px}.purchase-steps p{font-size:12px;margin-top:8px}.purchase-action-form{padding:20px;background:var(--bg);border-radius:12px;display:grid;gap:14px}.purchase-cancel{color:#a55f53;border:1px solid var(--line);padding:16px;border-radius:10px;font-size:13px}.purchase-cancel summary{cursor:pointer}.purchase-cancel form{display:grid;gap:15px;margin-top:15px}.purchase-timeline>div{display:flex;gap:12px;border-bottom:1px solid var(--line);padding:12px 0}.purchase-timeline>div>span{width:6px;height:6px;background:var(--accent);border-radius:50%;margin-top:7px;flex-shrink:0}.purchase-timeline p{font-size:12px;color:var(--muted);line-height:1.8}.purchase-modal-error:empty{display:none}@media(max-width:1000px){.purchase-stats{grid-template-columns:repeat(2,1fr)}.purchase-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-approval-grid{grid-template-columns:1fr}}@media(max-width:600px){.purchase-stats{gap:10px}.purchase-stats article{padding:16px}.purchase-stats strong{font-size:25px}.purchase-multitotal span{font-size:16px;white-space:normal}.purchase-filters{padding:16px;gap:12px}.purchase-approval-card{padding:20px}.purchase-detail-facts{grid-template-columns:1fr;gap:16px}.purchase-quotes{grid-template-columns:1fr}.purchase-form-total{grid-template-columns:1fr}.purchase-form-total strong{margin-top:4px}.purchase-section-heading{align-items:flex-start;flex-direction:column}.purchase-item-editor{grid-template-columns:1fr 1fr}.purchase-item-editor .meter-icon-button{grid-column:2;justify-self:end}.purchase-decision-box{padding:16px}.purchase-card-footer{align-items:flex-start;flex-direction:column}.purchase-detail-top{align-items:flex-start;flex-direction:column}.purchase-file-list a{max-width:100%}.purchase-form-body .twocol{grid-template-columns:1fr}.purchase-decision-box .btn{width:100%}}

dialog:has(#purchase-form),dialog:has(.purchase-detail-body){width:min(900px,calc(100vw - 32px));max-width:none}.purchase-form-body .row{flex-wrap:wrap}.purchase-detail-body .tablewrap{max-width:100%}

.purchase-filters{display:flex;flex-wrap:wrap;padding:12px 16px;gap:10px 12px;border-radius:12px;margin-bottom:16px}.purchase-filters label{flex:1 1 125px;max-width:180px;gap:5px;font-size:11px}.purchase-filters input,.purchase-filters select{height:34px;font-size:12px;padding:7px 10px}.purchase-filters .purchase-search{flex:1.5 1 170px;max-width:250px}.purchase-filters .linkbtn{min-height:34px;font-size:11px}.purchase-table td:last-child{white-space:nowrap}.purchase-stats{margin-bottom:18px}@media(max-width:600px){.purchase-filters label{flex:1 1 calc(50% - 12px);max-width:none}.purchase-filters .purchase-search{max-width:none;flex-basis:100%}}

.purchase-simple-filters{display:grid;grid-template-columns:minmax(180px,250px) minmax(250px,1fr);gap:14px;align-items:end}.purchase-simple-filters label,.purchase-simple-filters .purchase-search{max-width:none;width:100%;font-size:12px}.purchase-simple-filters input,.purchase-simple-filters select{height:40px;font-size:13px}.purchase-sort-button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}.purchase-sort-button span{opacity:.55;flex-shrink:0}.purchase-sort-button:focus-visible{outline:2px solid var(--accent);outline-offset:5px}.purchase-table .purchase-id,.purchase-table .purchase-date{white-space:nowrap}.purchase-table .purchase-subject{min-width:180px}.purchase-table th{white-space:nowrap}@media(max-width:600px){.purchase-simple-filters{grid-template-columns:1fr}.purchase-simple-filters .purchase-search{min-width:0}}

.purchase-direct-files{padding:20px;background:var(--bg);border:1px solid var(--line);border-radius:14px;display:grid;gap:14px}.purchase-pending-files{display:grid;gap:8px}.purchase-pending-files>div{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.purchase-pending-files span{overflow-wrap:anywhere}.purchase-detail-facts{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:600px){.purchase-detail-facts{grid-template-columns:1fr}}

.purchase-simple-filters{display:flex;justify-content:space-between;align-items:end;gap:20px}.purchase-simple-filters>label{flex:0 1 220px;max-width:220px}.purchase-simple-filters .purchase-search{flex:0 1 300px;max-width:300px;margin-left:auto}.purchase-simple-filters input,.purchase-simple-filters select{height:36px}@media(max-width:600px){.purchase-simple-filters{flex-wrap:wrap;gap:12px}.purchase-simple-filters>label,.purchase-simple-filters .purchase-search{flex:1 1 100%;max-width:none;margin-left:0}}

/* Expense views share the established calm purchasing visual language. */
.expense-tabs{margin-bottom:24px}.expense-stats{display:grid;grid-template-columns:1fr 1.6fr 1fr 1fr;gap:16px;margin:0 0 22px}.expense-stats article{padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:16px;display:flex;flex-direction:column;gap:10px}.expense-stats article>span,.expense-stats small{font-size:12px;color:var(--muted)}.expense-stats strong{font-size:28px;letter-spacing:-.6px}.expense-multitotal{display:flex;flex-direction:column;gap:5px}.expense-multitotal span{font-size:22px;white-space:nowrap}.expense-filters{padding:20px;display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:16px;margin-bottom:22px}.expense-filters label{display:grid;gap:8px;font-size:12px;color:var(--muted)}.expense-filters input,.expense-filters select{width:100%;min-width:0;height:43px;font-size:13px}.expense-filters .linkbtn{align-self:end;min-height:43px}.expense-search{grid-column:span 1}.expense-table td{vertical-align:middle}.expense-table td small{display:block;color:var(--muted);font-size:11px;margin-top:6px;white-space:normal}.expense-title{text-align:left;max-width:230px;white-space:normal;font-weight:700!important;line-height:1.6}.expense-money{font-weight:700;white-space:nowrap}.expense-table th+th,.expense-table td+td{border-left:1px solid var(--line)}.expense-badge{display:inline-flex;padding:5px 9px;font-size:11px;font-weight:700;border-radius:7px;background:var(--accent-soft);white-space:nowrap}.expense-badge.status-approved,.expense-badge.status-received{background:#eaf4ee;color:#447a61}.expense-badge.status-rejected,.expense-badge.status-cancelled{background:#f9eeeb;color:#a55f53}.expense-badge.status-ordered,.expense-badge.status-partial{background:#edf2f8;color:#587795}.expense-badge.status-draft{background:var(--bg);color:var(--muted)}.expense-approval-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.expense-approval-card{padding:26px;display:flex;flex-direction:column}.expense-approval-card>.row{justify-content:space-between}.expense-number,.expense-age{font-size:11px;color:var(--muted)}.expense-approval-card h2{font-size:20px;line-height:1.4;margin:18px 0 10px}.expense-approval-card>p{font-size:13px;color:var(--muted);line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:44px}.expense-decision-total{background:var(--accent-soft);padding:20px;border-radius:13px;margin:20px 0}.expense-decision-total small{display:block;color:var(--muted);margin-bottom:8px}.expense-decision-total strong{font-size:29px;letter-spacing:-.7px}.expense-approval-card dl{margin:0}.expense-approval-card dl>div{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid var(--line);font-size:12px}.expense-approval-card dt{color:var(--muted)}.expense-approval-card dd{margin:0;text-align:right;max-width:65%;font-weight:600}.expense-card-footer{margin-top:auto;padding-top:22px;display:flex;justify-content:space-between;align-items:center;gap:12px}.expense-card-footer>span{font-size:12px;color:var(--muted)}.expense-callout{padding:15px 17px;background:var(--accent-soft);border:1px solid var(--line);border-radius:10px;font-size:12px;line-height:1.7;margin:16px 0}.expense-mail-panel{margin-top:24px;padding:20px}.expense-mail-panel>summary{cursor:pointer;font-weight:600}.expense-panel-body{padding-top:18px}.expense-panel-body .row{flex-wrap:wrap}.expense-panel-body a{color:var(--ink);text-decoration:none}.expense-panel-body .formhint{margin:18px 0}.expense-form-body{gap:20px}.expense-form-body label{font-size:13px}.expense-form-body input,.expense-form-body select{font-size:14px}.expense-item-editor{display:grid;grid-template-columns:2fr .8fr .8fr 1fr .6fr 32px;gap:10px;padding:16px;border:1px solid var(--line);border-radius:12px;margin-bottom:12px;align-items:end}.expense-item-editor input{width:100%;min-width:0;padding:10px;font-size:13px}.expense-item-editor label{min-width:0;display:grid;gap:8px;font-size:11px}.expense-item-editor .expense-item-name{grid-column:1/-1}.expense-item-editor>label:not(.expense-item-name){grid-column:auto}.expense-item-editor{grid-template-columns:1fr 1fr 1.4fr .8fr 32px}.expense-item-editor .meter-icon-button{height:33px;width:32px;margin-bottom:2px}.expense-section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.expense-section-heading>span{font-size:11px;color:var(--muted)}.expense-quote-editor{padding:18px;border:1px solid var(--line);border-radius:12px;display:grid;gap:15px}.expense-radio{display:flex!important;align-items:center;gap:8px;font-size:12px!important}.expense-radio input{width:16px!important;min-width:16px;height:16px;padding:0}.expense-form-total{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;background:var(--accent-soft);border-radius:12px;padding:18px}.expense-form-total span{font-size:11px;color:var(--muted)}.expense-form-total strong{display:block;margin-top:8px;font-size:15px;color:var(--ink)}.expense-detail-body{gap:22px}.expense-detail-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.expense-detail-top small{color:var(--muted);font-size:12px}.expense-detail-body>h2{font-size:23px;line-height:1.4}.expense-detail-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;background:var(--bg);padding:18px;border-radius:12px}.expense-detail-facts span{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.expense-detail-facts strong{font-size:14px}.expense-detail-reason{padding:18px;border:1px solid var(--line);border-radius:12px}.expense-detail-reason p{white-space:pre-wrap;font-size:14px;line-height:1.7;margin-top:9px;color:var(--muted)}.expense-decision-box{padding:22px;border:1px solid color-mix(in srgb,var(--accent) 25%,var(--line));background:var(--accent-soft);border-radius:14px;display:grid;gap:15px}.expense-decision-box strong{font-size:16px}.expense-decision-box p{font-size:12px;line-height:1.7;margin-top:8px}.expense-decision-box .row{flex-wrap:wrap}.expense-reject{color:#ab5d50;background:var(--surface);border:1px solid #dfb7ad}.expense-totals-line{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:15px;font-size:12px}.expense-quotes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.expense-quotes article{padding:18px;border:1px solid var(--line);border-radius:12px}.expense-quotes article.selected{background:var(--accent-soft);border-color:var(--accent)}.expense-quotes span,.expense-quotes small{display:block;font-size:11px;color:var(--muted)}.expense-quotes h4{font-size:14px;margin:12px 0}.expense-quotes strong{font-size:19px;display:block;margin-bottom:8px}.expense-quotes p{font-size:12px;line-height:1.6;margin-top:12px}.expense-file-list{display:flex;flex-wrap:wrap;gap:10px}.expense-file-list a{font-size:12px;white-space:normal;word-break:break-word;text-decoration:none;color:var(--ink)}.expense-upload{display:grid;gap:10px;padding:17px;border:1px dashed var(--line);border-radius:12px;font-size:13px}.expense-upload small{color:var(--muted);font-size:11px}.expense-steps{padding:0;list-style:none}.expense-steps li{display:flex;gap:13px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--line)}.expense-steps li>span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--accent-soft);font-size:12px}.expense-steps strong{font-size:14px}.expense-steps small{display:block;color:var(--muted);margin-top:6px;font-size:11px}.expense-steps p{font-size:12px;margin-top:8px}.expense-action-form{padding:20px;background:var(--bg);border-radius:12px;display:grid;gap:14px}.expense-cancel{color:#a55f53;border:1px solid var(--line);padding:16px;border-radius:10px;font-size:13px}.expense-cancel summary{cursor:pointer}.expense-cancel form{display:grid;gap:15px;margin-top:15px}.expense-timeline>div{display:flex;gap:12px;border-bottom:1px solid var(--line);padding:12px 0}.expense-timeline>div>span{width:6px;height:6px;background:var(--accent);border-radius:50%;margin-top:7px;flex-shrink:0}.expense-timeline p{font-size:12px;color:var(--muted);line-height:1.8}.expense-modal-error:empty{display:none}@media(max-width:1000px){.expense-stats{grid-template-columns:repeat(2,1fr)}.expense-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.expense-approval-grid{grid-template-columns:1fr}}@media(max-width:600px){.expense-stats{gap:10px}.expense-stats article{padding:16px}.expense-stats strong{font-size:25px}.expense-multitotal span{font-size:16px;white-space:normal}.expense-filters{padding:16px;gap:12px}.expense-approval-card{padding:20px}.expense-detail-facts{grid-template-columns:1fr;gap:16px}.expense-quotes{grid-template-columns:1fr}.expense-form-total{grid-template-columns:1fr}.expense-form-total strong{margin-top:4px}.expense-section-heading{align-items:flex-start;flex-direction:column}.expense-item-editor{grid-template-columns:1fr 1fr}.expense-item-editor .meter-icon-button{grid-column:2;justify-self:end}.expense-decision-box{padding:16px}.expense-card-footer{align-items:flex-start;flex-direction:column}.expense-detail-top{align-items:flex-start;flex-direction:column}.expense-file-list a{max-width:100%}.expense-form-body .twocol{grid-template-columns:1fr}.expense-decision-box .btn{width:100%}}
dialog:has(#expense-form),dialog:has(.expense-detail-body){width:min(900px,calc(100vw - 32px));max-width:none}.expense-form-body .row{flex-wrap:wrap}.expense-detail-body .tablewrap{max-width:100%}
.expense-filters{display:flex;flex-wrap:wrap;padding:12px 16px;gap:10px 12px;border-radius:12px;margin-bottom:16px}.expense-filters label{flex:1 1 125px;max-width:180px;gap:5px;font-size:11px}.expense-filters input,.expense-filters select{height:34px;font-size:12px;padding:7px 10px}.expense-filters .expense-search{flex:1.5 1 170px;max-width:250px}.expense-filters .linkbtn{min-height:34px;font-size:11px}.expense-table td:last-child{white-space:nowrap}.expense-stats{margin-bottom:18px}@media(max-width:600px){.expense-filters label{flex:1 1 calc(50% - 12px);max-width:none}.expense-filters .expense-search{max-width:none;flex-basis:100%}}
.expense-simple-filters{display:grid;grid-template-columns:minmax(180px,250px) minmax(250px,1fr);gap:14px;align-items:end}.expense-simple-filters label,.expense-simple-filters .expense-search{max-width:none;width:100%;font-size:12px}.expense-simple-filters input,.expense-simple-filters select{height:40px;font-size:13px}.expense-sort-button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}.expense-sort-button span{opacity:.55;flex-shrink:0}.expense-sort-button:focus-visible{outline:2px solid var(--accent);outline-offset:5px}.expense-table .expense-id,.expense-table .expense-date{white-space:nowrap}.expense-table .expense-subject{min-width:180px}.expense-table th{white-space:nowrap}@media(max-width:600px){.expense-simple-filters{grid-template-columns:1fr}.expense-simple-filters .expense-search{min-width:0}}
.expense-direct-files{padding:20px;background:var(--bg);border:1px solid var(--line);border-radius:14px;display:grid;gap:14px}.expense-pending-files{display:grid;gap:8px}.expense-pending-files>div{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.expense-pending-files span{overflow-wrap:anywhere}.expense-detail-facts{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:600px){.expense-detail-facts{grid-template-columns:1fr}}
.expense-simple-filters{display:flex;justify-content:space-between;align-items:end;gap:20px}.expense-simple-filters>label{flex:0 1 220px;max-width:220px}.expense-simple-filters .expense-search{flex:0 1 300px;max-width:300px;margin-left:auto}.expense-simple-filters input,.expense-simple-filters select{height:36px}@media(max-width:600px){.expense-simple-filters{flex-wrap:wrap;gap:12px}.expense-simple-filters>label,.expense-simple-filters .expense-search{flex:1 1 100%;max-width:none;margin-left:0}}

.expense-badge.status-review_required{background:#fff3da;color:#986b20}

.request-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:8px;margin-bottom:24px}.request-toolbar .leave-hub-nav{border:0;background:transparent;margin:0;box-shadow:none;flex:0 1 auto}.request-toolbar .request-toolbar-filters{display:flex;flex:0 1 470px;gap:12px;padding:0 8px;margin:0;align-items:center;background:transparent;border:0}.request-toolbar-filters>label{font-size:0!important;gap:0!important;flex:0 1 180px;max-width:180px}.request-toolbar-filters .expense-search,.request-toolbar-filters .purchase-search{flex:1 1 220px;max-width:260px;margin:0}.request-toolbar-filters input,.request-toolbar-filters select{height:40px;font-size:14px}.expense-receipt-editor{grid-template-columns:1fr 1fr 1fr 1fr 32px}.expense-receipt-editor label{font-size:13px}.expense-receipt-editor select{min-width:0;width:100%;padding:10px}.expense-gross-total{display:flex;justify-content:flex-end}.expense-gross-total span{font-size:13px}.expense-gross-total strong{font-size:20px}
@media(max-width:1250px){.request-toolbar{flex-wrap:wrap}.request-toolbar .request-toolbar-filters{margin-left:auto;flex:0 1 470px}.request-toolbar .leave-hub-nav{flex:1 1 100%}}
@media(max-width:650px){.request-toolbar .leave-hub-nav{min-width:0;overflow-x:auto}.request-toolbar .request-toolbar-filters{flex:1 1 100%;flex-wrap:nowrap;padding:4px}.request-toolbar-filters>label{flex:1 1 45%;max-width:none}.request-toolbar-filters .expense-search,.request-toolbar-filters .purchase-search{min-width:0;flex:1 1 55%;max-width:none}.expense-receipt-editor{grid-template-columns:1fr 1fr}.expense-receipt-editor .meter-icon-button{grid-column:2;justify-self:end}}
/* Subtle column dividers are the default for application data tables. */
.tablewrap table tr>th+th,.tablewrap table tr>td+td{border-left:1px solid var(--line)}
.turnover-workspace{overflow:hidden}.turnover-toolbar{display:flex;gap:14px;align-items:end;padding:22px;border-bottom:1px solid var(--line);background:var(--surface)}.turnover-toolbar label{display:grid;gap:8px;font-size:12px;color:var(--muted)}.turnover-toolbar label:first-child{min-width:230px}.turnover-toolbar input,.turnover-toolbar select{height:43px;font-size:14px;min-width:0}.turnover-toolbar .turnover-search{display:flex;align-items:center;gap:8px;margin-left:auto;max-width:300px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}.turnover-search input{border:0;background:transparent;box-shadow:none;width:100%;padding-left:0}.turnover-search svg{width:18px;flex-shrink:0}.turnover-period-arrows{display:flex;gap:5px}.turnover-period-arrows .btn{height:43px;padding:8px 14px}.turnover-period-title{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 6px}.turnover-period-title h2{font-size:21px;margin:0 0 6px}.turnover-period-title span{font-size:13px;color:var(--muted)}.turnover-inline-toggle{display:flex;gap:9px;align-items:center;font-size:13px;background:var(--bg);padding:11px 14px;border:1px solid var(--line);border-radius:10px}.turnover-inline-toggle input{width:17px;height:17px}.turnover-summary{display:grid;grid-template-columns:1fr 1fr 2fr;gap:16px;padding:20px 24px 26px}.turnover-metric{border:1px solid var(--line);border-radius:14px;background:var(--bg);padding:18px 20px;text-align:left;display:flex;flex-direction:column;gap:9px;color:var(--ink);font:inherit}.turnover-metric>span,.turnover-metric>small{color:var(--muted);font-size:12px}.turnover-metric>strong{font-size:28px;font-weight:700;letter-spacing:-.6px}.turnover-metric button{cursor:pointer}.turnover-metric.selected{border-color:var(--accent);background:var(--accent-soft)}.turnover-total{background:color-mix(in srgb,var(--accent-soft) 45%,var(--surface))}.turnover-total strong{font-size:24px;white-space:nowrap}.turnover-total strong small{font-weight:400;font-size:11px;color:var(--muted);letter-spacing:0}.turnover-table-heading{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-top:1px solid var(--line)}.turnover-table-heading h3{font-size:16px}.turnover-table th{background:color-mix(in srgb,var(--accent-soft) 28%,var(--bg));color:var(--ink)}.turnover-table th button{background:none;border:0;padding:0;color:inherit;font:inherit;cursor:pointer}.turnover-table td{vertical-align:middle}.turnover-table td small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.turnover-table .turnover-entered{background:color-mix(in srgb,#78b39b 6%,var(--surface))}.turnover-table .turnover-dirty{background:var(--accent-soft)}.turnover-tenant{border:0;background:none;padding:0;color:var(--ink);text-align:left;font:inherit;font-weight:700;cursor:pointer}.turnover-tenant:disabled{opacity:1;cursor:default}.turnover-amount{white-space:nowrap}.turnover-amount-input{display:flex;gap:6px;min-width:190px}.turnover-amount-input input{width:120px;min-width:90px}.turnover-amount-input select{width:75px}.turnover-table input,.turnover-table select{font-size:13px;padding:9px;border-radius:8px}.turnover-change{font-size:12px;font-weight:600;display:inline-block;margin-top:5px}.turnover-change.up{color:#4f8976}.turnover-change.down{color:#ad786c}.turnover-note{white-space:normal;max-width:230px}.turnover-record-context{display:grid;gap:8px;background:var(--accent-soft);border-radius:12px;padding:18px}.turnover-record-context>span{font-size:13px;color:var(--muted)}.turnover-history-list>div{display:grid;grid-template-columns:100px 1fr auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}.turnover-history-list>div>div{height:7px;border-radius:9px;background:var(--bg);overflow:hidden}.turnover-history-list i{height:100%;display:block;background:var(--accent);border-radius:9px}.turnover-history-list small{grid-column:3;text-align:right;font-size:10px;color:var(--muted);margin-top:-9px}.turnover-audit summary{cursor:pointer;font-weight:600}.turnover-audit p{padding:14px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.8}.turnover-empty{color:var(--muted)}
@media(max-width:1050px){.turnover-toolbar{flex-wrap:wrap}.turnover-toolbar .turnover-search{margin-left:0}.turnover-summary{grid-template-columns:1fr 1fr}.turnover-total{grid-column:1/-1}}
@media(max-width:600px){.turnover-toolbar{padding:16px;gap:12px}.turnover-toolbar label:first-child{min-width:0;width:100%}.turnover-toolbar .turnover-search{max-width:none;width:100%}.turnover-period-title{padding:20px 16px 6px;align-items:start;gap:12px}.turnover-period-title h2{font-size:18px}.turnover-inline-toggle{font-size:11px;white-space:nowrap;padding:9px}.turnover-summary{gap:10px;padding:16px}.turnover-metric{padding:15px}.turnover-total strong{font-size:20px;white-space:normal}.turnover-table-heading{padding:16px;gap:10px}.turnover-table-heading .btn{font-size:11px;padding:10px}.turnover-history-list>div{grid-template-columns:90px 1fr auto;font-size:11px;gap:7px}}
.turnover-table-heading{gap:14px;flex-wrap:wrap}.turnover-table-heading>h3{flex:0 0 auto;white-space:nowrap;margin:0}.turnover-table-heading>.turnover-toolbar{padding:0;border:0;flex:1 1 560px;gap:10px;justify-content:flex-end;background:none}.turnover-table-heading>.turnover-toolbar label:first-child{min-width:155px;max-width:190px;flex:1 1 155px}.turnover-table-heading>.turnover-toolbar label{font-size:11px;gap:5px}.turnover-table-heading>.turnover-toolbar input,.turnover-table-heading>.turnover-toolbar select{height:38px;font-size:13px;padding:8px 10px}.turnover-table-heading>.turnover-toolbar .turnover-search{flex:1 1 170px;max-width:220px;margin-left:0;align-self:end}.turnover-table-heading>.turnover-toolbar .turnover-period-arrows{align-self:end}.turnover-table-heading>.turnover-toolbar .turnover-period-arrows .btn{height:38px;padding:7px 11px}.turnover-table-heading>.row{align-self:end;flex:0 0 auto}.turnover-table-heading>.row .btn{height:38px;padding:8px 14px;font-size:13px}.turnover-amount-input input{font-variant-numeric:tabular-nums}
@media(max-width:1050px){.turnover-table-heading>.turnover-toolbar{flex-wrap:wrap;justify-content:flex-start;flex-basis:100%;order:2}.turnover-table-heading>.row{margin-left:auto}.turnover-table-heading>.turnover-toolbar .turnover-search{margin-left:auto}}
@media(max-width:600px){.turnover-table-heading>.turnover-toolbar label:first-child{max-width:none;flex-basis:100%}.turnover-table-heading>.turnover-toolbar .turnover-search{flex-basis:100%;max-width:none;margin-left:0}}
.turnover-period-controls{display:flex;align-items:center;gap:13px;margin-top:14px;flex-wrap:wrap}.turnover-period-controls .pill{font-size:11px}.turnover-period-controls .linkbtn{font-size:12px}
.turnover-period-options{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}@media(max-width:600px){.turnover-period-title{flex-wrap:wrap}.turnover-period-options{justify-content:flex-start}}

/* Receipt dates and compact per-receipt fields. */
.expense-item-editor.expense-receipt-editor{grid-template-columns:145px minmax(130px,1.15fr) minmax(150px,1.6fr) minmax(125px,.8fr) 112px 34px;gap:12px;align-items:end}
.expense-receipt-editor label{min-width:0}.expense-receipt-editor input,.expense-receipt-editor select{width:100%;min-width:0}.expense-receipt-editor{padding:16px}
@media(max-width:1050px){.expense-item-editor.expense-receipt-editor{grid-template-columns:repeat(2,minmax(0,1fr))}.expense-receipt-editor label:nth-child(3){grid-column:1/-1}}
@media(max-width:520px){.expense-item-editor.expense-receipt-editor{grid-template-columns:minmax(0,1fr)}.expense-receipt-editor label:nth-child(3){grid-column:auto}}
#meter-vision-settings-form .check{display:flex;align-items:center;gap:10px}#meter-vision-settings-form .check input{width:20px;height:20px;margin:0;flex:0 0 20px}
/* Personal dashboard tool workspace */
.dashboard-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}.dashboard-tool{overflow:hidden;min-width:0}.dash-tool-heading{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line);background:var(--accent-soft)}.dash-tool-heading h2{font-size:18px;margin:0}.dash-tool-heading>span{font-size:22px;color:var(--accent)}.dash-tool-content{padding:24px;min-height:185px;display:flex;flex-direction:column;gap:20px}.dash-balance{display:flex;flex-direction:column;gap:8px}.dash-balance strong{font-size:32px;line-height:1.25}.dash-balance span,.dash-editor-row small{color:var(--muted);font-size:14px}.dash-list>div{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.dash-approval-list>button{display:flex;align-items:center;gap:16px;width:100%;padding:14px 0;background:none;border:0;border-bottom:1px solid var(--line);color:inherit;font:inherit;text-align:left;cursor:pointer}.dash-approval-list>button>strong{margin-left:auto}.dash-pending{color:var(--accent)}.dash-editor-row{display:flex;align-items:center;gap:8px;padding:14px 0;border-bottom:1px solid var(--line)}.dash-editor-row>div{flex:1}.dash-editor-row small{display:block;margin-top:5px}.dash-editor-row .btn{padding:8px 12px;min-height:36px}.dashboard-catalog{display:flex;flex-wrap:wrap;gap:10px}.dashboard-empty{padding:40px;text-align:center}.dashboard-empty p{margin:12px 0 24px}@media(max-width:1100px){.dashboard-tools{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.dashboard-tools{grid-template-columns:1fr;gap:14px}.dash-tool-content{min-height:0;padding:20px}.dash-editor-row{flex-wrap:wrap}.dash-editor-row>div{min-width:100%}.dashboard-empty{padding:24px}}
/* Personal workspace: compact summaries and wider working panels. */
.dashboard-tools{grid-template-columns:repeat(12,minmax(0,1fr));gap:20px;align-items:stretch;grid-auto-flow:row dense}
.dashboard-tool{display:flex;flex-direction:column;border-radius:18px;box-shadow:0 4px 18px #182b3a04;position:relative}
.dashboard-tool:before{content:'';position:absolute;top:24px;left:0;width:3px;height:24px;background:var(--dash-tone,var(--accent));border-radius:0 4px 4px 0}
.dash-size-small{grid-column:span 3}.dash-size-half{grid-column:span 6}.dash-size-full{grid-column:1/-1}
.dash-tool-heading{background:transparent;border:0;padding:23px 24px 8px;gap:12px;min-height:62px}
.dash-tool-heading h2{font-size:16px;line-height:1.4;font-weight:600;letter-spacing:-.25px}
.dash-tool-heading>span{font-size:19px;display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border-radius:10px;background:transparent;color:var(--dash-tone,var(--accent))}
.dash-tool-content{padding:10px 24px 23px;min-height:0;flex:1;gap:16px}
.dash-balance strong{font-size:36px;letter-spacing:-1.3px;font-variant-numeric:tabular-nums;line-height:1.2}
.dash-balance strong small{font-size:18px;font-weight:500;letter-spacing:0;color:var(--muted)}
.dash-balance{gap:7px}.dash-balance>span{font-size:13px}
.dashboard-tool .linkbtn{display:flex;align-items:center;justify-content:space-between;align-self:stretch;font-size:13px;text-align:left;margin-top:auto;padding:0;color:var(--dash-tone,var(--accent));font-weight:600}
.dash-my_leave{--dash-tone:#669587}.dash-my_purchase{--dash-tone:#798db8}.dash-my_expenses{--dash-tone:#b28c70}.dash-my_reminders{--dash-tone:#9a87b5}.dash-daily_visitors{--dash-tone:#668fa5}
.dash-queue-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto}.dash-queue-chips button{background:var(--bg);border:1px solid var(--line);border-radius:7px;padding:6px 8px;color:var(--muted);font:inherit;font-size:12px;cursor:pointer}.dash-queue-chips b{margin-left:6px;color:var(--text)}
.dash-size-small .dash-tool-content{min-height:122px}.dash-size-half .dash-tool-heading,.dash-size-full .dash-tool-heading{padding-bottom:16px;border-bottom:1px solid var(--line)}
.dash-size-half .dash-tool-content,.dash-size-full .dash-tool-content{padding-top:22px;min-height:225px}
.dash-visitor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.dash-visitor-tile{position:relative;padding:4px 14px 12px 0;min-width:0}.dash-visitor-tile+.dash-visitor-tile{border-left:1px solid var(--line);padding-left:18px}
.dash-visitor-label{font-size:15px;font-weight:600;line-height:1.5}.dash-visitor-label small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:3px}.dash-visitor-tile>strong{display:block;font-size:31px;letter-spacing:-1px;margin-top:13px;line-height:1.3;font-variant-numeric:tabular-nums}.dash-unit{font-size:12px;color:var(--muted)}
.dash-spark{display:flex;height:38px;align-items:end;gap:5px;margin-top:17px}.dash-spark i{flex:1;max-width:26px;background:color-mix(in srgb,var(--dash-tone) 28%,transparent);border-radius:3px 3px 0 0}.dash-spark i:last-child{background:var(--dash-tone)}
.dash-my_reminders .dash-list>div{padding:12px 0}.dash-my_reminders .dash-list>div:first-child{padding-top:0}.dash-my_reminders .dash-list>div>span{font-size:15px;font-weight:500}.dash-my_reminders .dash-list small{font-size:12px;color:var(--muted);margin-top:5px}.dash-my_reminders .dash-list strong{font-size:12px;white-space:nowrap;background:var(--bg);border:1px solid var(--line);padding:7px 9px;border-radius:7px;font-weight:500}
.dash-my_reminders .muted{margin:auto 0;align-self:center;font-size:14px;padding:30px 0}
.dash-editor-row select{width:150px;min-height:36px;padding:7px;font-size:13px}
@media(min-width:1500px){.dash-size-full .dash-visitor-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1200px){.dash-size-small{grid-column:span 6}.dash-size-half{grid-column:span 6}.dash-tool-heading{padding-left:20px;padding-right:20px}.dash-tool-content{padding-left:20px;padding-right:20px}}
@media(max-width:700px){.dashboard-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dash-size-small{grid-column:span 1}.dash-size-half,.dash-size-full{grid-column:1/-1}.dash-tool-heading{padding:16px 16px 8px;min-height:57px}.dash-tool-heading h2{font-size:14px}.dash-tool-heading>span{width:27px;height:27px;font-size:16px}.dash-tool-content{padding:8px 16px 17px;gap:14px}.dash-balance strong{font-size:29px}.dash-size-small .dash-tool-content{min-height:112px}.dash-queue-chips{gap:4px}.dash-queue-chips button{padding:4px 5px;font-size:10px}.dashboard-tool .linkbtn{font-size:12px}.dash-size-half .dash-tool-content,.dash-size-full .dash-tool-content{min-height:190px}.dash-editor-row select{width:140px}.dash-visitor-tile>strong{font-size:27px}}
@media(max-width:380px){.dashboard-tools{grid-template-columns:1fr}.dash-size-small{grid-column:1/-1}}
.dash-visitor_charts{--dash-tone:#668fa5}.dash-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.dash-chart-panel{min-width:0}.dash-chart-title{display:flex;justify-content:space-between;gap:12px;font-size:15px}.dash-chart-title span{font-size:12px;color:var(--muted)}.dash-chart-panel svg{display:block;width:100%;margin-top:15px;color:var(--dash-tone)}.dash-chart-gridline{stroke:var(--line);fill:none;stroke-width:1}.dash-chart-panel text{font-size:11px;fill:var(--muted)}.dash-size-small .dash-chart-grid{grid-template-columns:1fr}@media(max-width:700px){.dash-chart-grid{grid-template-columns:1fr;gap:25px}}
/* Soft corporate header surfaces, shared across every dashboard tool. */
.dashboard-tool .dash-tool-heading{background:color-mix(in srgb,var(--dash-tone,var(--accent)) 10%,var(--card));border-bottom:1px solid color-mix(in srgb,var(--dash-tone,var(--accent)) 18%,var(--line));padding-top:18px;padding-bottom:18px;min-height:76px}
.dashboard-tool .dash-tool-heading>span{background:transparent;border:0;box-shadow:none}
.dashboard-tool .dash-tool-content{padding-top:20px}
@media(max-width:700px){.dashboard-tool .dash-tool-heading{padding-top:14px;padding-bottom:14px;min-height:66px}.dashboard-tool .dash-tool-content{padding-top:16px}}
.dash-drag-handle{flex:0 0 28px;width:28px;height:42px;display:grid;place-items:center;font-size:25px;color:var(--muted);cursor:grab;touch-action:none;border-radius:7px;padding:0}.dash-drag-handle:hover{background:var(--bg);color:var(--accent)}.dash-dragging{background:var(--accent-soft);box-shadow:0 4px 14px #182b3a12;position:relative;z-index:2;border-radius:9px}.dash-dragging .dash-drag-handle{cursor:grabbing;color:var(--accent)}.dash-editor-row>div{min-width:0}.dash-editor-row select{flex-shrink:0}@media(max-width:650px){.dash-editor-row>div{min-width:calc(100% - 44px);flex-basis:calc(100% - 44px)}.dash-editor-row select{margin-left:36px;flex:1}}
/* Compact dashboard title strips. */
.dashboard-tool .dash-tool-heading{padding:11px 20px;min-height:48px;gap:10px}.dashboard-tool .dash-tool-heading>span{width:26px;height:26px;font-size:16px;border-radius:8px}.dashboard-tool:before{top:13px;height:22px}.dashboard-tool .dash-tool-heading h2{line-height:1.35;font-size:15px}@media(max-width:700px){.dashboard-tool .dash-tool-heading{padding:10px 15px;min-height:46px}.dashboard-tool .dash-tool-heading h2{font-size:14px}.dashboard-tool .dash-tool-heading>span{width:24px;height:24px;font-size:15px}.dashboard-tool:before{top:12px;height:21px}}
.dash-next_leave{--dash-tone:#669587}.dash-next-leave strong{font-size:26px;letter-spacing:-.6px}.dash-next-leave>span{color:var(--dash-tone);font-size:15px;font-weight:600}.dash-chart-legend{display:flex;gap:18px;flex-wrap:wrap;margin-top:12px;font-size:12px;color:var(--ink)}.dash-chart-legend span{display:flex;align-items:center;gap:6px}.dash-chart-legend i{width:17px;height:3px;border-radius:2px}.dash-chart-panel svg{margin-top:8px}.dash-chart-panel text{font-size:12px;fill:var(--ink)}.dash-chart-foot{font-size:12px;color:var(--muted);text-align:center;margin-top:7px}.dash-chart-title strong{font-size:17px}.dash-chart-gridline{stroke:color-mix(in srgb,var(--ink) 12%,var(--card))}
.dash-leave-next{border-top:1px solid var(--line);padding-top:10px;margin-top:0;font-size:12px}.dash-leave-next>span{color:var(--muted);display:block;margin-bottom:5px}.dash-leave-next>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.dash-leave-next time{color:var(--ink);font-size:13px;font-weight:500}.dash-leave-next b{color:var(--dash-tone,var(--accent));font-size:12px;font-weight:600}
.dash-upcoming_events{--dash-tone:#8b91b0}.dash-events-period{font-size:12px;color:var(--muted)}.dash-event{display:flex;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.dash-event:first-child{padding-top:0}.dash-event-date{flex:0 0 44px;text-align:center;border:1px solid var(--line);border-radius:9px;padding:6px 3px;background:var(--bg)}.dash-event-date b{display:block;font-size:19px;line-height:1.2;color:var(--dash-tone)}.dash-event-date span{font-size:11px;color:var(--muted)}.dash-event>div:last-child{min-width:0}.dash-event strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}.dash-event small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.dash-events-list{max-height:295px;overflow:auto}.dash-events-list .muted{padding:20px 0;font-size:14px}
/* Clear hierarchy: quiet metadata and understated card navigation. */
.dashboard-tool .linkbtn{font-size:12px;font-weight:500;line-height:1.4}.dash-upcoming_events .dash-tool-content{gap:12px;min-height:170px}.dash-upcoming_events .dash-events-period{font-size:12px;line-height:1.45;margin:0;color:var(--muted)}.dash-upcoming_events .dash-events-list.is-empty{flex:1;display:flex;align-items:center}.dash-upcoming_events .dash-events-list .muted{font-size:13px;line-height:1.5;font-weight:400;margin:0;padding:8px 0}.dash-upcoming_events .linkbtn{align-self:flex-start;justify-content:flex-start;gap:7px;color:var(--muted);margin-top:auto}.dash-upcoming_events .linkbtn:hover{color:var(--dash-tone)}.dash-upcoming_events .linkbtn>span{font-size:12px;font-weight:400}

/* Grouped organization and system settings navigation. */
.settings-page-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:7px;margin:0 0 22px;border:1px solid var(--border,#d8dcd9);border-radius:12px;background:var(--surface,#fff)}
.settings-page-tabs button{font:inherit;font-size:14px;color:inherit;background:transparent;border:0;border-radius:8px;padding:10px 14px;cursor:pointer}
.settings-page-tabs button.active{background:color-mix(in srgb,var(--accent,#a27040) 12%,transparent);font-weight:700;box-shadow:inset 0 -2px var(--accent,#a27040)}
@media(max-width:640px){.settings-page-tabs{flex-wrap:nowrap;overflow-x:auto}.settings-page-tabs button{white-space:nowrap;padding:10px 12px}}

/* Compact system mail settings. */
.mail-settings-card{max-width:1120px;margin-bottom:22px}
.mail-settings-card .cardhead{padding:18px 24px;min-height:0}
.mail-settings-card .cardhead h2{font-size:18px}
.mail-settings-card .formbody{padding:24px;gap:18px}
.mail-settings-card label{font-size:14px}
.mail-settings-card input,.mail-settings-card select{min-height:44px;height:44px;padding:10px 13px;font-size:14px;line-height:22px}
.mail-settings-card .twocol{gap:20px}
.mail-settings-card .stack{gap:18px}
.mail-settings-card details{border-top:1px solid var(--border,#ddd);padding-top:16px}
.mail-settings-card summary{font-size:14px;cursor:pointer}
.mail-settings-card .formhint{font-size:12px;line-height:1.6}
.mail-settings-card .formfoot{padding:16px 24px}
@media(max-width:640px){.mail-settings-card .formbody,.mail-settings-card .cardhead{padding:16px}.mail-settings-card .twocol{grid-template-columns:1fr}.mail-settings-card .formfoot{padding:16px;flex-wrap:wrap}}

/* Plain desktop status labels and consistent heading counts. */
@media screen and (min-width:801px){
.tenant-status-text,.turnover-table td:nth-child(6) .pill,.tablewrap .purchase-badge,.tablewrap .expense-badge{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;min-height:0!important;font-size:inherit;font-weight:500}
html[data-palette] .cardhead h2 .pill,html[data-palette] .turnover-table-heading h3 .pill{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;min-height:0;min-width:24px;margin-left:4px;padding:3px 7px;border:0;border-radius:8px;background:var(--accent-soft);color:var(--accent);font-size:11px;font-weight:600;line-height:18px;box-shadow:none}
}

@media(min-width:801px){html[data-palette] .rm-list>.panelhead h2 .pill{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;min-height:0;min-width:24px;margin-left:4px;padding:3px 7px;border:0;border-radius:8px;background:var(--accent-soft);color:var(--accent);font-size:11px;font-weight:600;line-height:18px;box-shadow:none}}

.dash-reminder-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:auto}.dash-reminder-add{font-size:12px;padding:7px 10px;min-height:34px;white-space:nowrap}.dash-reminder-actions>.linkbtn{font-size:inherit}@media(max-width:800px){.dash-reminder-actions{gap:8px}.dash-reminder-add{font-size:11px;padding:7px 9px}}

/* Quiet reminder action, independent of the global button scale. */
.dash-reminder-actions{justify-content:flex-end;flex:0 0 auto;padding-top:12px}.dash-reminder-actions .dash-reminder-add.btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:28px;height:auto;max-width:100%;padding:4px 6px;border:0;background:transparent;box-shadow:none;border-radius:6px;color:var(--muted);font-size:11px;font-weight:500;line-height:1.4;letter-spacing:0}.dash-reminder-actions .dash-reminder-add.btn:hover{background:var(--accent-soft);color:var(--accent)}.dash-reminder-actions .dash-reminder-add.btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.dash-reminder-add>span:first-child{font-size:15px;line-height:1}

@media(min-width:801px){
 dialog:has(#reminder-form)>.modalhead{background:linear-gradient(115deg,var(--accent-soft),var(--surface));border-bottom:1px solid var(--line);box-shadow:inset 3px 0 var(--accent);padding:20px 26px}
 dialog:has(#reminder-form)>.modalhead h2{font-size:20px}
 #reminder-form .rm-form{background:color-mix(in srgb,var(--accent) 3%,var(--surface));padding:22px 26px}
 #reminder-form .rm-form-grid:first-child{grid-template-columns:1fr}
 #reminder-form .rm-mall-selection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 14px;max-height:180px;background:var(--surface);padding:10px 14px;border-color:var(--line)}
 #reminder-form .rm-mall-selection .rm-check{padding:6px 0;font-size:13px;min-width:0}
 #reminder-form .rm-description{padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:10px}
 #reminder-form .formfoot{background:var(--accent-soft);border-top:1px solid var(--line)}
}

/* Six complete workspace systems. Print layouts retain their document styling. */
@media screen {
html[data-palette]{--font-step:0px;--bg:#f3f6fa;--surface:#fff;--ink:#243248;--muted:#68778b;--line:#e0e6ee;--accent:#356de5;--accent-soft:#eaf0ff;--on-accent:#fff;--orange:var(--accent);--pale:var(--accent-soft);--sidebar-width:248px;--nav-bg:#172b45;--nav-ink:#e2eaf7;--nav-muted:#91a6c1;--nav-line:#ffffff16;--nav-active:#ffffff14;--nav-selected:#fff;--panel-radius:12px;--control-radius:8px;--bar-height:72px;color-scheme:light}
html[data-palette="harbor"]{--sidebar-width:252px;--bg:#edf3f1;--ink:#213d3b;--muted:#667d78;--line:#dbe6e1;--accent:#278278;--accent-soft:#e6f2ed;--nav-bg:#193f42;--nav-ink:#e1eeeb;--nav-muted:#9cbfba;--nav-active:#ffffff16;--panel-radius:18px;--control-radius:11px}
html[data-mode="dark"]{color-scheme:dark;--bg:#111923;--surface:#1a2532;--ink:#e4eaf2;--muted:#9eacbd;--line:#2e3d4d;--accent-soft:#263e63;--accent:#8cb4ff;--on-accent:#13243b;--nav-bg:#101b2a;--nav-ink:#d2deed;--nav-muted:#8399b3;--nav-active:#25374e;--nav-selected:#fff;--nav-line:#ffffff12}
html[data-palette="harbor"][data-mode="dark"]{--bg:#102522;--surface:#19332f;--ink:#e1eeea;--muted:#9dbbb1;--line:#2c4942;--accent:#85cdb9;--accent-soft:#284c42;--nav-bg:#12302e;--nav-ink:#cde5dd;--nav-muted:#88b1a3;--nav-active:#294c43}
body{background:var(--bg);color:var(--ink)}.shell{grid-template-columns:var(--sidebar-width) minmax(0,1fr)}.sidebar{width:var(--sidebar-width);background:var(--nav-bg);color:var(--nav-ink);border-right:1px solid var(--nav-line);padding:24px 14px 14px;gap:0}.main{min-width:0}.topbar{height:var(--bar-height);padding:0 30px;background:var(--surface);border-bottom:1px solid var(--line)}.content{max-width:1720px;padding:28px 30px}.sidebar .brand{margin:3px 6px 25px;filter:none}.sidebar .brand-wordmark{filter:brightness(0) invert(1);opacity:.96}.sidebar .brand small{color:var(--nav-muted);font-size:9px;letter-spacing:2px}.sidebar .workspace-switch{background:transparent;border:1px solid var(--nav-line);color:var(--nav-ink);border-radius:var(--control-radius);margin-bottom:22px;padding:11px 10px}.sidebar .workspace-switch small,.sidebar .profile small{color:var(--nav-muted);font-size:11px}.sidebar .workspace-switch strong{font-size:13px}.sidebar .avatar{background:var(--nav-active);color:var(--nav-ink)}.sidebar .navlabel{color:var(--nav-muted);font-size:9px;letter-spacing:1.2px;padding:14px 12px 7px}.sidebar .navgroup{margin:0 0 8px}.sidebar .navitem{color:var(--nav-ink);font-size:13px;font-weight:500;min-height:41px;padding:10px 12px;border-radius:var(--control-radius);margin:2px 0;gap:11px;line-height:1.35}.sidebar .navitem svg{width:18px;height:18px;opacity:.78}.sidebar .navitem:hover{background:var(--nav-active);color:var(--nav-selected)}.sidebar .navitem.active{background:var(--nav-active);color:var(--nav-selected);box-shadow:inset 3px 0 var(--accent)}.sidebar .build-box,.sidebar .navy-user{display:none}.sidebar .profile{border-top:1px solid var(--nav-line);color:var(--nav-ink);padding:15px 6px 2px;margin-top:20px}.sidebar .profile strong{font-size:12px}.nav-accordion:not(:has(.navitem)){display:none}.design-rail{display:none}.sidebar:not(:has([data-nav-group="tenants"] .navitem)) [data-design-section="tenants"],.sidebar:not(:has([data-nav-group="1"] .navitem)) [data-design-section="1"],.sidebar:not(:has([data-nav-group="finance"] .navitem)) [data-design-section="finance"],.sidebar:not(:has([data-nav-group="3"] .navitem)) [data-design-section="3"],.sidebar:not(:has([data-nav-group="4"] .navitem)) [data-design-section="4"]{display:none}
.card,.panel,.dashboard-tool{border-radius:var(--panel-radius);border-color:var(--line);background:var(--surface);box-shadow:0 2px 4px #16283c03}.btn{border-radius:var(--control-radius);min-height:38px;padding:10px 15px;font-size:13px;font-weight:600}.btn.primary{background:var(--accent);color:var(--on-accent);box-shadow:none}.btn.secondary{background:var(--surface);border-color:var(--line);color:var(--ink)}input,select,textarea{border-radius:var(--control-radius);border-color:var(--line);color:var(--ink);background:var(--surface);font-size:13px}input:focus,select:focus,textarea:focus{outline-color:var(--accent)}.pagehead h1{font-size:27px;letter-spacing:-.7px}.pagehead p{font-size:13px;color:var(--muted)}table th{background:color-mix(in srgb,var(--bg) 75%,var(--surface));color:var(--muted);font-size:11px;font-weight:600}table th+th,table td+td{border-left:1px solid var(--line)}table td{font-size:13px;border-bottom:1px solid var(--line)}.dash-tool-heading{min-height:46px;padding-top:12px;padding-bottom:12px}.dash-tool-heading h2{font-size:15px}.dashboard-tool-footer a{font-size:12px;font-weight:500}.topbar .search{background:var(--bg);border:1px solid var(--line);border-radius:var(--control-radius)}.topbar .appearance-trigger{border-radius:var(--control-radius)}html[data-mode="dark"] .sidebar .brand-wordmark{filter:brightness(0) invert(1)}
html[data-palette="harbor"] .sidebar{left:14px;top:14px;bottom:14px;height:calc(100vh - 28px);width:238px;border-radius:18px;padding:24px 14px;box-shadow:0 8px 24px #163b3912}html[data-palette="harbor"] .main{padding-left:14px}html[data-palette="harbor"] .topbar{background:transparent;border:0}html[data-palette="harbor"] .dashboard-tool{box-shadow:0 4px 18px #193f4205}html[data-palette="harbor"] .dash-tool-heading{background:color-mix(in srgb,var(--accent-soft) 45%,var(--surface))}
/* Design chooser: real layout silhouettes rather than interchangeable swatches. */
#modal.appearance-dialog{width:920px;max-width:calc(100vw - 32px)}.appearance-dialog .formbody{padding:22px 26px}.appearance-intro{font-size:13px;color:var(--muted);margin:0 0 19px}.appearance-designs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.design-choice{padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:12px;text-align:left;color:var(--ink);cursor:pointer;min-width:0}.design-choice[aria-checked="true"]{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 18%,transparent)}.design-choice-name{display:flex;justify-content:space-between;align-items:center;margin:11px 2px 5px}.design-choice-name strong{font-size:14px}.design-choice-name i{font-style:normal;color:var(--accent);visibility:hidden}.design-choice[aria-checked="true"] .design-choice-name i{visibility:visible}.design-choice>small{display:block;font-size:10px;color:var(--muted);margin:0 2px 4px;line-height:1.5}.design-preview{display:block;height:96px;position:relative;overflow:hidden;border:1px solid #0000000c;border-radius:6px;background:var(--preview-bg)}.preview-nav{position:absolute;left:0;top:0;bottom:0;width:25%;background:var(--preview-nav);padding:23px 6px 0;display:flex;gap:6px;flex-direction:column}.preview-nav em{height:3px;background:var(--preview-accent);opacity:.35;border-radius:2px}.preview-nav em:first-child{opacity:.9;height:7px}.preview-top{position:absolute;left:25%;right:0;top:0;height:16px;background:#ffffffbb;border-bottom:1px solid #00000008}.preview-content{position:absolute;left:30%;top:25px;right:6%;display:grid;grid-template-columns:1fr 1fr;gap:5px}.preview-content b{height:16px;background:white;border:1px solid #0000000c;border-top:3px solid var(--preview-accent);border-radius:3px}.preview-content>em{grid-column:span 2;height:15px;border-radius:3px;background:#ffffffb3;border:1px solid #0000000c}.preview-harbor .preview-nav{inset:6px auto 6px 6px;width:23%;border-radius:6px}.preview-harbor .preview-top{background:transparent;border:0}.appearance-section{margin-top:22px}.appearance-section h3{font-size:13px;margin-bottom:10px}.appearance-modes{display:flex;gap:10px}.appearance-mode{flex:1;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:8px;padding:11px;font-size:13px;cursor:pointer}.appearance-mode[aria-checked="true"]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
@media(max-width:1100px){.topbar{padding:0 20px}.content{padding:24px 20px}.topbar .topdate,.topbar .notice-badge{display:none}}
@media(max-width:800px){.shell{display:block}.sidebar{transform:translateX(-110%);z-index:50;width:248px;left:0;top:0;height:100dvh}.sidebar.open{transform:translateX(0)}.main{padding-left:0!important}.topbar{height:62px;padding:0 16px}.content{padding:20px 16px}.mobile-toggle{display:inline-flex!important}.topbar .search{display:none}.pagehead h1{font-size:24px}.pagehead{gap:14px;flex-wrap:wrap}html[data-palette="harbor"] .sidebar{left:0;top:0;height:100dvh;border-radius:0}.appearance-dialog .formbody{padding:18px}.appearance-designs{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.design-preview{height:80px}.design-choice>small{font-size:10px}.appearance-modes{gap:6px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
}
@media screen {.dashboard-tool .linkbtn{color:var(--muted)}.dashboard-tool .linkbtn:hover{color:var(--accent)}.dashboard-tools .dash-size-small .dash-tool-heading{height:62px;min-height:62px;padding-left:16px;padding-right:16px}.dashboard-tools .dash-size-small .dash-tool-heading h2{font-size:14px}
@media(max-width:800px){.dashboard-tools .dash-size-small .dash-tool-heading{height:52px;min-height:52px}.topbar .topdate,.topbar .notice-badge{display:none}}
}

/* Reverse company wordmark on dark navigation surfaces. */
.sidebar .custom-brand img{filter:brightness(0) invert(1)}
html[data-mode="dark"] .sidebar .custom-brand img{filter:brightness(0) invert(1)}
.sidebar .brand-wordmark{filter:grayscale(1) contrast(20) invert(1);mix-blend-mode:screen}
html[data-mode="dark"] .sidebar .brand-wordmark{filter:grayscale(1) contrast(20) invert(1);mix-blend-mode:screen}
.sidebar .custom-brand .brand-reverse{display:block;filter:none;mix-blend-mode:normal}.sidebar .custom-brand:has(.brand-reverse) .brand-standard{display:none}
html[data-mode="dark"] .sidebar .custom-brand:has(.brand-reverse) .brand-standard{display:none}html[data-mode="dark"] .sidebar .custom-brand .brand-reverse{display:block;filter:none}
.welcome .brand-reverse{display:none}
.dashboard-tools .dashboard-tool .dash-tool-heading{height:62px;min-height:62px;box-sizing:border-box;display:flex;align-items:center;padding:12px 20px}
@media(max-width:800px){.dashboard-tools .dashboard-tool .dash-tool-heading{height:52px;min-height:52px;padding:10px 15px}}
.notification-menu{position:relative}.notification-menu>summary{list-style:none;cursor:pointer;position:relative;display:grid;place-items:center;width:38px;height:38px;border-radius:8px}.notification-menu>summary::-webkit-details-marker{display:none}.notification-count{position:absolute;right:-3px;top:-4px;min-width:18px;height:18px;padding:0 4px;display:grid;place-items:center;border-radius:12px;background:#d64d48;color:white;font-size:10px}.notification-dropdown{position:absolute;right:0;top:46px;width:300px;max-width:calc(100vw - 32px);padding:16px;z-index:100;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 35px #0002;color:var(--ink)}.notification-dropdown>strong{display:block;margin-bottom:10px;font-size:14px}.notification-dropdown button{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:12px 0;border:0;border-top:1px solid var(--line);background:none;color:var(--ink);text-align:left;font-size:13px;cursor:pointer}.notification-dropdown button b{background:var(--accent-soft);color:var(--accent);padding:3px 8px;border-radius:7px}.notification-dropdown p{font-size:13px;color:var(--muted);margin:8px 0}
/* Compact, aligned leave panel headings. */
.leave-personal-grid>.card>.cardhead{box-sizing:border-box;min-height:70px;height:auto;padding:12px 20px;align-items:center;gap:10px}.leave-personal-grid>.card>.cardhead h2{min-height:0;margin:0;line-height:24px;font-size:16px}.leave-personal-grid>.card>.cardhead p{margin:2px 0 0;line-height:18px;font-size:12px}.leave-personal-grid>.card>.cardhead .pill{padding:3px 7px;min-height:0;font-size:11px;line-height:18px}.leave-personal-grid .leave-status-choice{margin:0;min-height:0}.leave-personal-grid .leave-status-choice select{min-height:32px;padding:6px 10px}
@media(max-width:700px){.leave-personal-grid>.card>.cardhead{padding:10px 14px;min-height:64px}}
.leave-detail-icon{display:inline-grid;place-items:center;width:30px;height:30px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:12px;cursor:pointer;opacity:.8}.leave-detail-icon:hover{opacity:1;background:var(--accent-soft);border-color:var(--accent)}
.viewer-greeting{font-size:13px;font-weight:600;color:inherit;white-space:nowrap;padding-left:8px;letter-spacing:-.1px}@media(max-width:700px){.viewer-greeting{font-size:12px;padding-left:2px}}
button.notice-badge{cursor:pointer;font:inherit;font-size:10px;white-space:nowrap}.release-notes>p{font-size:12px;color:var(--muted);margin-top:0}.release-notes article{padding:12px 0;border-top:1px solid var(--line)}.release-notes article strong{font-size:14px}.release-notes article p{margin:4px 0 0;font-size:13px;line-height:1.5;color:var(--muted)}
/* Keep company identity independent of menu length. */
.sidebar .custom-brand{width:calc(100% - 12px);max-width:100%;min-width:0}.sidebar .custom-brand img{width:auto;max-width:100%;height:auto;max-height:30px;object-fit:contain;flex-shrink:1}.sidebar .brand-wordmark{max-width:100%;flex-shrink:1}
dialog:has(.release-notes){width:460px;max-width:calc(100vw - 28px);border-radius:12px}dialog:has(.release-notes) .modalhead{padding:14px 18px;min-height:0}dialog:has(.release-notes) .modalhead h2{font-size:16px;line-height:22px}dialog:has(.release-notes) .modalhead button{width:26px;height:26px}dialog:has(.release-notes) .formbody.release-notes{padding:12px 18px;gap:0}dialog:has(.release-notes) .release-notes>p{font-size:10px;margin:0 0 8px}dialog:has(.release-notes) .release-notes article{padding:7px 0}dialog:has(.release-notes) .release-notes article strong{font-size:12px;line-height:16px}dialog:has(.release-notes) .release-notes article p{font-size:11px;line-height:15px;margin:2px 0 0}dialog:has(.release-notes) .formfoot{padding:10px 18px}dialog:has(.release-notes) .formfoot .btn{font-size:11px;min-height:28px;padding:6px 12px}
.visitor-report-box{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:14px 18px;border:1px solid color-mix(in srgb,var(--accent) 40%,var(--line));border-radius:var(--control-radius);background:var(--accent-soft);min-width:0}.visitor-report-box .visitor-period{gap:10px}.visitor-report-box .visitor-period>label{color:var(--accent)}.visitor-report-box .visitor-metric-toggle{background:color-mix(in srgb,var(--surface) 55%,transparent)}@media(max-width:700px){.visitor-report-box{width:100%;padding:12px;gap:10px}.visitor-report-box .visitor-period{flex-wrap:wrap}}

/* Compact visitor records and separate report controls. */
.visitor-daily-records{margin-bottom:24px}.visitor-daily-records>.cardhead{min-height:0;padding:14px 20px}.visitor-daily-records>.cardhead h2{font-size:16px;margin:0}.visitor-daily-records>.cardhead p{font-size:12px;margin:4px 0 0}.visitor-daily-records table{width:100%;table-layout:auto}.visitor-daily-records table th,.visitor-daily-records table td{height:auto;min-height:0;padding:10px 16px;line-height:20px;font-size:13px;vertical-align:middle}.visitor-daily-records th:nth-child(1),.visitor-daily-records td:nth-child(1),.visitor-daily-records th:nth-child(3),.visitor-daily-records td:nth-child(3),.visitor-daily-records th:nth-child(4),.visitor-daily-records td:nth-child(4),.visitor-daily-records th:last-child,.visitor-daily-records td:last-child{width:1%;white-space:nowrap}.visitor-daily-records td:nth-child(2){white-space:nowrap}.visitor-daily-records .visit-weekday{display:inline;margin-left:3px;font-size:12px;color:var(--muted)}.visitor-daily-records .visit-delete-button{display:inline-grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid color-mix(in srgb,#cd6b64 25%,var(--line));border-radius:7px;background:color-mix(in srgb,#cd6b64 7%,var(--surface));font-size:13px}.visitor-measure-box{align-self:stretch;justify-content:center}.visitor-main-chart .cardhead{flex-wrap:wrap;gap:12px}.visitor-main-chart .visitor-metric-toggle button{font-size:13px;padding:8px 12px}

/* Align labels and control baselines across all three visitor filters. */
.visitor-toolbar{align-items:stretch;gap:16px}.visitor-toolbar>.visitor-mall-filter,.visitor-toolbar>.visitor-report-box{box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:10px;padding:16px 18px;border-radius:12px;min-height:118px;border:1px solid color-mix(in srgb,var(--accent) 28%,var(--line));background:color-mix(in srgb,var(--accent-soft) 65%,var(--surface))}.visitor-toolbar>.visitor-mall-filter>span,.visitor-control-label{font-size:12px;font-weight:600;line-height:18px;color:var(--accent);margin:0}.visitor-toolbar .visitor-mall-filter select{min-height:46px;height:46px;margin:0;padding:10px 14px;font-size:14px}.visitor-date-box .visitor-period{height:46px;align-items:center;flex-wrap:nowrap;gap:8px}.visitor-date-box .visitor-period label{margin:0}.visitor-date-box .visitor-period input{height:46px;min-height:46px;padding:8px 12px;font-size:14px;background:var(--surface);border:1px solid var(--line);border-radius:8px}.visitor-date-box .visitor-period>.btn{height:40px;min-height:40px;width:36px;padding:6px}.visitor-date-box .visitor-period>.linkbtn{font-size:13px;white-space:nowrap}.visitor-measure-box .visitor-metric-toggle{display:flex;height:46px;padding:3px;gap:3px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}.visitor-measure-box .visitor-metric-toggle button{height:38px;min-height:0;padding:7px 12px;font-size:13px;line-height:20px;border-radius:6px;display:flex;align-items:center;justify-content:center;gap:7px;background:transparent}.visitor-measure-box .visitor-metric-toggle button.active{background:var(--accent-soft);color:var(--accent);box-shadow:none;font-weight:600}.visitor-measure-box .visitor-metric-toggle svg{width:17px;height:17px}@media(max-width:700px){.visitor-toolbar>.visitor-report-box,.visitor-toolbar>.visitor-mall-filter{width:100%;min-height:0}.visitor-date-box .visitor-period{height:auto;flex-wrap:wrap}}

/* Scale the cropped fallback wordmark as one unit in every layout. */
html .sidebar .brand-wordmark{box-sizing:content-box;width:172px!important;min-width:172px;max-width:none;flex:0 0 172px!important;height:19px;background-size:260px 77px!important;background-position:-69px -25px!important}.sidebar .brand:not(.custom-brand){overflow:visible;align-items:center}.sidebar .brand small{align-self:center;margin:0;font-size:8px;letter-spacing:1.6px}

/* Ten compact visible daily rows, with the header retained while scrolling. */
.visitor-daily-records .tablewrap{max-height:394px;overflow:auto;scrollbar-gutter:stable}.visitor-daily-records table{border-collapse:separate;border-spacing:0}.visitor-daily-records table th{position:sticky;top:0;z-index:2;background:var(--surface);height:34px;box-sizing:border-box;padding:7px 12px;font-size:11px;line-height:19px}.visitor-daily-records table td{height:36px;box-sizing:border-box;padding:6px 12px;font-size:12px;line-height:23px}.visitor-daily-records table td:nth-child(5){white-space:nowrap!important;max-width:420px;overflow:hidden;text-overflow:ellipsis}.visitor-daily-records table td:nth-child(2){width:1%}.visitor-daily-records .visit-weekday{font-size:11px}.visitor-daily-records .visit-delete-button{width:23px;height:23px;font-size:11px}.visitor-daily-records .cardfooter{padding:10px 16px;font-size:11px}@media print{.visitor-daily-records .tablewrap{max-height:none;overflow:visible}.visitor-daily-records table th{position:static}.visitor-daily-records table td:nth-child(5){white-space:normal!important;overflow:visible}}

.visitor-average-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.visitor-average-pair>div{min-width:0}.visitor-average-pair>div+div{border-left:1px solid var(--line);padding-left:16px}.visitor-average-pair span{display:block;font-size:12px;color:var(--muted);margin-bottom:5px}.visitor-average-pair strong{display:block;font-size:clamp(24px,2.2vw,34px);line-height:1.15;letter-spacing:-1px;color:var(--ink);font-variant-numeric:tabular-nums}

/* Match the summary number baseline; captions sit beneath the averages. */
.visitor-stats .stat-top{min-height:38px;margin-bottom:16px;align-items:center}.visitor-stats .value{margin-top:0;line-height:1.15}.visitor-stats .visitor-average-pair{margin:0 0 16px;align-items:start}.visitor-average-pair>div{display:flex;flex-direction:column}.visitor-average-pair strong{order:0;font-size:clamp(28px,2.7vw,40px);line-height:1.15}.visitor-average-pair span{order:1;margin:6px 0 0;font-size:12px}.visitor-stats .value{font-size:clamp(28px,2.7vw,40px)}

/* Inline visitor filters share the page heading, without a separate band. */
.pagehead:has(.visitor-toolbar){align-items:center;gap:20px;flex-wrap:wrap}.pagehead:has(.visitor-toolbar) .head-actions{align-items:center;gap:10px;flex-wrap:wrap}.head-actions .visitor-toolbar{display:flex;align-items:center;gap:10px;padding:0;margin:0;border:0;background:none;box-shadow:none;width:auto}.head-actions .visitor-toolbar>.visitor-mall-filter,.head-actions .visitor-toolbar>.visitor-report-box{min-height:0;width:auto;padding:6px 9px;gap:3px;border-radius:9px}.head-actions .visitor-toolbar .visitor-mall-filter select{height:34px;min-height:34px;min-width:150px;font-size:12px;padding:6px 10px}.head-actions .visitor-control-label,.head-actions .visitor-mall-filter>span{font-size:10px;line-height:13px}.head-actions .visitor-date-box .visitor-period{height:34px;gap:4px}.head-actions .visitor-date-box .visitor-period input{height:34px;min-height:34px;font-size:12px;width:138px;padding:5px 8px}.head-actions .visitor-date-box .visitor-period>.btn{height:30px;min-height:30px;width:25px;padding:3px}.head-actions .visitor-date-box .visitor-period>.linkbtn{font-size:11px;padding:4px}.pagehead:has(.visitor-toolbar) .head-actions>.btn,.pagehead:has(.visitor-toolbar) .head-actions>details>summary{min-height:38px;padding:8px 11px;font-size:12px}@media(max-width:700px){.head-actions .visitor-toolbar{width:100%;flex-wrap:wrap}.head-actions .visitor-toolbar>.visitor-mall-filter,.head-actions .visitor-toolbar>.visitor-report-box{flex:1;min-width:0}.head-actions .visitor-date-box .visitor-period{height:auto;flex-wrap:wrap}}

/* Keep native select text fully inside the compact control. */
.head-actions .visitor-toolbar .visitor-mall-filter select{box-sizing:border-box;height:40px;min-height:40px;line-height:normal;padding:6px 30px 6px 11px;font-size:13px;font-weight:600}.head-actions .visitor-date-box .visitor-period{height:40px}.head-actions .visitor-date-box .visitor-period input{box-sizing:border-box;height:40px;min-height:40px;line-height:normal;padding:6px 9px;font-size:13px}.head-actions .visitor-toolbar>.visitor-mall-filter,.head-actions .visitor-toolbar>.visitor-report-box{padding:8px 10px;gap:5px}

/* Logo is a fixed-height vertical stack, never a growing flex item. */
html .sidebar .brand{flex:0 0 auto;box-sizing:border-box;height:52px;min-height:52px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;margin:0 0 18px;width:100%;position:static}html .sidebar .brand-wordmark{flex:0 0 auto!important;height:19px;min-height:19px}html .sidebar .brand small{flex:0 0 auto;position:static;line-height:12px;margin:0;transform:none}html .sidebar .workspace-switch{flex:0 0 auto}.sidebar .custom-brand img{flex:0 0 auto}

.release-entry-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.release-entry-heading time{font-size:10px;color:var(--muted);white-space:nowrap;font-weight:400}

/* Reserve the right half for a future visitor panel. */
.visitor-daily-records{width:calc((100% - 24px)/2);min-width:0;margin-right:auto}.visitor-daily-records table th,.visitor-daily-records table td{padding-left:9px;padding-right:9px}.visitor-daily-records td:nth-child(5){min-width:110px!important;max-width:180px!important}.visitor-daily-records>.cardhead{padding:12px 16px}@media(max-width:1100px){.visitor-daily-records{width:100%}}@media print{.visitor-daily-records{width:100%}}

.visitor-records-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;margin-bottom:24px;align-items:start}.visitor-records-grid>.card{width:100%;min-width:0;margin:0}.visitor-records-grid>.card>.cardhead{min-height:0;padding:12px 16px;background:color-mix(in srgb,var(--accent) 8%,var(--surface));border-bottom:1px solid var(--line)}.visitor-records-grid>.card>.cardhead h2{font-size:16px;margin:0}.visitor-records-grid>.card>.cardhead p{font-size:12px;line-height:18px;margin:4px 0 0}.visitor-monthly-records .tablewrap{max-height:394px;overflow:auto;scrollbar-gutter:stable}.visitor-monthly-records th{position:sticky;top:0;z-index:2;background:var(--surface)}.visitor-monthly-records th,.visitor-monthly-records td{padding:8px 10px;font-size:12px;line-height:20px;white-space:nowrap}.visitor-monthly-records .visitor-delta{font-size:12px}.visitor-detail-grid:has(>.card:only-child){grid-template-columns:1fr}@media(max-width:1100px){.visitor-records-grid{grid-template-columns:1fr}}@media print{.visitor-records-grid{display:block}.visitor-monthly-records .tablewrap{max-height:none;overflow:visible}}

.visitor-average-title small{display:block;margin-top:3px;font-size:10px;font-weight:400;line-height:14px;color:var(--muted)}.visitor-stats .card.stat{padding-top:20px;padding-bottom:20px;min-height:0}.visitor-stats .visitor-average-pair{margin-bottom:0}.visitor-stats .stat-top{margin-bottom:14px}

html .sidebar .brand small{align-self:flex-end;margin-right:max(0px,calc((100% - 172px)/2));text-align:right}.visitor-count-entry{font-size:12px;min-height:30px;padding:6px 10px}.visitor-daily-records>.cardhead{display:flex;justify-content:space-between;align-items:center;gap:10px}

.visitor-coverage{background:color-mix(in srgb,#75a98b 16%,var(--line))}.visitor-coverage>span{background:#78a88b!important}html[data-mode="dark"] .visitor-coverage>span{background:#8bbd9e!important}

.visitor-chart-grid:has(>.card:only-child){grid-template-columns:minmax(0,1fr)}

/* Both report panels share the same lower edge. */
.visitor-records-grid{align-items:stretch}.visitor-records-grid>.card{display:flex;flex-direction:column}.visitor-records-grid>.visitor-monthly-records .tablewrap{flex:1;max-height:438px}.pagehead:has(.visitor-toolbar) [data-action="print-report"]{display:inline-flex;align-items:center;justify-content:center;width:38px;padding:8px}.pagehead:has(.visitor-toolbar) .report-export-menu>summary{display:flex;align-items:center;justify-content:center;gap:5px}.pagehead:has(.visitor-toolbar) .report-export-menu>summary svg{width:18px;height:18px}@media(max-width:1100px){.visitor-records-grid>.visitor-monthly-records .tablewrap{max-height:394px}}

.visitor-stats .stat-top>span:first-child{font-size:12px}.visitor-stats .stat-top>span:first-child>strong{font-size:14px;font-weight:650}

/* Show complete monthly rows at the initial scroll position. */
.visitor-records-grid>.visitor-monthly-records .tablewrap{flex:0 0 auto;height:438px;max-height:438px}.visitor-monthly-records table{border-collapse:separate;border-spacing:0}.visitor-monthly-records table th{box-sizing:border-box;height:32px;padding:6px 10px;line-height:19px}.visitor-monthly-records table td{box-sizing:border-box;height:58px;padding:8px 10px;line-height:20px}.visitor-monthly-records{overflow:hidden}@media(max-width:1100px){.visitor-records-grid>.visitor-monthly-records .tablewrap{height:438px;max-height:438px}}@media print{.visitor-records-grid>.visitor-monthly-records .tablewrap{height:auto;max-height:none}}

.visitor-stats .stat:nth-child(n+3) .stat-top{gap:8px}.visitor-stats .stat:nth-child(n+3) .stat-top>span:first-child{font-size:11px;white-space:nowrap;letter-spacing:-.15px}.visitor-stats .stat:nth-child(n+3) .stat-top>span:first-child>strong{font-size:12px}.visitor-stats .stat:nth-child(n+3) .stat-icon{width:30px;height:30px;min-width:30px;flex:0 0 30px}.visitor-stats .stat:nth-child(n+3) .stat-icon svg{width:17px;height:17px}

.visitor-daily-records tbody td:nth-child(2),.visitor-daily-records tbody td:nth-child(2) strong{font-weight:400;color:var(--muted)}.visitor-daily-records tbody td:nth-child(3){font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}

.visitor-chart-point{cursor:pointer;pointer-events:all;stroke:transparent;stroke-width:8px}.visitor-chart-point.has-note{stroke:var(--surface);stroke-width:2px;paint-order:stroke;filter:drop-shadow(0 0 1px var(--ink));r:5px}.visitor-chart-point:hover,.visitor-chart-point:focus{stroke:var(--ink);stroke-width:2px;r:6px;outline:none}.visitor-point-detail section{padding:14px 0;border-bottom:1px solid var(--line)}.visitor-point-detail section:last-child{border-bottom:0}.visitor-point-counts{display:flex;gap:24px;font-size:13px;margin-top:10px}.visitor-point-detail p{font-size:13px;line-height:1.6;white-space:pre-wrap;margin:10px 0 0}.visitor-special-day{padding:10px 12px;background:var(--accent-soft);border-radius:8px;font-size:13px;margin-bottom:8px}

/* Visitor heading controls follow the same four-column rhythm as the summaries. */
@media(min-width:1101px){
.pagehead:has(.visitor-toolbar){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;align-items:end}
.pagehead:has(.visitor-toolbar)>div:first-child{grid-column:span 2}
.pagehead:has(.visitor-toolbar) .head-actions{grid-column:span 2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 34px 48px;gap:10px;align-items:end;min-width:0}
.head-actions .visitor-toolbar{display:contents}
.head-actions .visitor-toolbar>.visitor-mall-filter,.head-actions .visitor-toolbar>.visitor-report-box{box-sizing:border-box;width:100%;min-width:0;margin:0}
.head-actions .visitor-toolbar .visitor-mall-filter select{width:100%;min-width:0;font-size:12px}
.head-actions .visitor-date-box .visitor-period{display:grid;grid-template-columns:22px minmax(0,1fr) 22px;gap:3px;height:40px}
.head-actions .visitor-date-box .visitor-period label{min-width:0}
.head-actions .visitor-date-box .visitor-period input{width:100%;font-size:12px;padding:5px 2px;min-width:0}
.head-actions .visitor-date-box .visitor-period>.btn{width:22px;padding:2px}
.head-actions .visitor-date-box .visitor-period>.linkbtn{display:none}
.pagehead:has(.visitor-toolbar) .head-actions>[data-action="print-report"]{width:34px;padding:7px}
.pagehead:has(.visitor-toolbar) .head-actions>.report-export-menu>summary{padding:8px 5px}
.pagehead:has(.visitor-toolbar) .head-actions>[data-action="deleted-visits"]{grid-column:1/-1;justify-self:end}
}

@media(min-width:1101px){.pagehead:has(.visitor-toolbar) .head-actions{grid-template-columns:calc((100% - 24px)/2) minmax(0,1fr) 34px 48px;gap:8px}.head-actions .visitor-date-box .visitor-period{grid-template-columns:18px minmax(0,1fr) 18px}.head-actions .visitor-date-box .visitor-period>.btn{width:18px}.head-actions .visitor-date-box .visitor-period input{font-size:11px}}

.visitor-chart-point.has-note{r:3.4px;stroke-width:1.25px;filter:drop-shadow(0 0 .5px var(--ink))}.visitor-chart-point:hover,.visitor-chart-point:focus{r:4px;stroke-width:1.3px}

.head-actions .visitor-date-box .visitor-period{display:block;height:40px}.head-actions .visitor-date-box .visitor-period label{display:block;width:100%}.head-actions .visitor-date-box .visitor-period input{width:100%;font-size:13px;padding:6px 9px;cursor:pointer}

/* Equal inset controls and aligned report actions. */
.head-actions .visitor-toolbar>.visitor-mall-filter,.head-actions .visitor-toolbar>.visitor-report-box{padding:9px 10px;gap:6px;border-radius:10px;background:color-mix(in srgb,var(--accent) 5%,var(--surface));border-color:color-mix(in srgb,var(--accent) 25%,var(--line))}
.head-actions .visitor-toolbar .visitor-mall-filter select{display:block;box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0;height:40px;min-height:40px;padding:7px 30px 7px 12px;border:1px solid var(--line);border-radius:7px;background-color:var(--surface);font-size:13px;font-weight:500}
.head-actions .visitor-date-box .visitor-period input{box-sizing:border-box;height:40px;min-height:40px;border:1px solid var(--line);border-radius:7px;background:var(--surface);font-size:13px;font-weight:500}
@media(min-width:1101px){.head-actions .visitor-toolbar>.visitor-report-box{margin-left:16px;width:calc(100% - 16px)}.pagehead:has(.visitor-toolbar) .head-actions>[data-action="print-report"],.pagehead:has(.visitor-toolbar) .head-actions>.report-export-menu{margin-bottom:10px}.pagehead:has(.visitor-toolbar) .head-actions>[data-action="print-report"],.pagehead:has(.visitor-toolbar) .head-actions>.report-export-menu>summary{height:40px;min-height:40px}}

.pagehead:has(.visitor-toolbar) h1{display:flex;align-items:center;gap:10px}.pagehead:has(.visitor-toolbar) h1>svg{width:27px;height:27px;flex:0 0 27px;color:var(--accent);stroke-width:1.7}

/* Consistent module headings, matching sidebar navigation. */
html .pagehead h1.workspace-page-title{display:flex;align-items:center;gap:10px;min-width:0}
html .pagehead h1.workspace-page-title>svg{width:25px;height:25px;flex:0 0 25px;color:var(--accent);stroke-width:1.7}
html .pagehead h1.workspace-page-title>span{min-width:0}
@media(max-width:640px){html .pagehead h1.workspace-page-title{gap:8px}html .pagehead h1.workspace-page-title>svg{width:22px;height:22px;flex-basis:22px}}

/* Keep the report heading anchored when optional administration actions appear. */
@media(min-width:1101px){
.pagehead:has(.visitor-toolbar){align-items:start}
.pagehead:has(.visitor-toolbar)>div:first-child{align-self:start;padding-top:18px}
.pagehead:has(.visitor-toolbar) .head-actions{align-items:end}
.pagehead:has(.visitor-toolbar) .visitor-mall-filter{grid-column:1;grid-row:1}
.pagehead:has(.visitor-toolbar) .visitor-date-box{grid-column:2;grid-row:1}
.pagehead:has(.visitor-toolbar) .head-actions>[data-action="print-report"]{grid-column:3;grid-row:1}
.pagehead:has(.visitor-toolbar) .head-actions>.report-export-menu{grid-column:4;grid-row:1;min-width:0;width:48px}
.pagehead:has(.visitor-toolbar) .head-actions>[data-action="deleted-visits"]{grid-column:1/-1;grid-row:2;justify-self:end;margin:0;padding:7px 11px;min-height:32px;font-size:12px}
}
@media(max-width:1100px){.pagehead:has(.visitor-toolbar) .head-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.pagehead:has(.visitor-toolbar) .visitor-toolbar{flex:1 1 360px;min-width:0}.pagehead:has(.visitor-toolbar) .head-actions>[data-action="deleted-visits"]{font-size:12px;padding:8px 10px}}

.pagehead:has(.visitor-toolbar) .head-actions>[data-action="deleted-visits"]{justify-self:end;align-self:end;margin-left:auto;margin-right:0;width:auto;min-height:28px;height:28px;padding:4px 9px;font-size:11px;line-height:18px;white-space:nowrap}

/* Selected mall context, aligned below each visitor summary icon. */
.visitor-stats .visitor-stat-identity{display:flex;flex-direction:column;align-items:center;gap:5px;flex-shrink:0;max-width:125px}.visitor-stats .visitor-stat-identity .visitor-title-scope{display:block;text-align:center;font-size:calc(11px + var(--font-step,0px));font-weight:500;color:var(--tone-b17a50);line-height:1.6;overflow-wrap:anywhere}

.visitor-stats .stat{position:relative}.visitor-stats .visitor-stat-mall{position:absolute;top:10px;left:20px;right:20px;display:block;font-size:9.33px!important;font-weight:500;line-height:1.2;color:var(--tone-b17a50);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}

/* Fit average values to their own half-card, retaining divider clearance. */
.visitor-stats .visitor-average-pair{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.visitor-stats .visitor-average-pair>div{container-type:inline-size;min-width:0}.visitor-stats .visitor-average-pair strong{white-space:nowrap;font-size:clamp(18px,24cqw,40px);max-width:100%;letter-spacing:-.6px}

.list-sort-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}.list-sort-arrow{font-size:12px;opacity:.45;flex-shrink:0}th[aria-sort="ascending"] .list-sort-arrow,th[aria-sort="descending"] .list-sort-arrow{opacity:1;color:var(--accent)}.list-sort-heading:hover .list-sort-arrow{opacity:1}.list-sort-heading:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:2px}

/* Compact shared settings and mall identity */
.settings-content .settings-page-tabs{display:flex;gap:4px;padding:5px;margin:0 0 16px;border:1px solid var(--line);border-radius:9px;background:var(--surface);overflow-x:auto}
.settings-content .settings-page-tabs button{padding:9px 12px;min-height:34px;border-radius:6px;white-space:nowrap;font-size:12px}
.settings-content .pagehead{margin-bottom:14px}.settings-content .card{margin-bottom:16px!important}.settings-content .cardhead{padding:14px 18px}.settings-content .cardhead h2{font-size:14px}.settings-content .formbody{padding:16px 18px;gap:12px}.settings-content .formfoot{padding:12px 18px}.settings-content .formbody p{margin:0;font-size:12px;line-height:1.6}.settings-content .formbody h3{font-size:13px;margin:0 0 8px}.settings-content input:not([type=checkbox]):not([type=radio]),.settings-content select{min-height:36px;padding:8px 10px;font-size:13px}.settings-content label:has(>input[type=checkbox]){display:flex;align-items:center;gap:9px;line-height:1.5}.settings-content input[type=checkbox]{width:16px;height:16px;margin:0;flex-shrink:0}.settings-content .logo-preview{height:90px;margin:10px 0}.settings-content .grid2{gap:16px}.settings-content .btn,.compact-actions .btn{min-height:30px;padding:6px 10px;font-size:12px}.settings-content .info{padding:10px 14px;font-size:12px;margin-bottom:12px}
.mall-table td{padding:10px 14px}.mall-table-logo{width:64px;height:34px;display:flex;align-items:center}.mall-table-logo img{width:100%;height:100%;object-fit:contain}.mall-table-logo .brand-reverse{display:none}html[data-mode=dark] .mall-table-logo:has(.brand-reverse) .brand-standard{display:none}html[data-mode=dark] .mall-table-logo .brand-reverse{display:block}.compact-actions,.favicon-preview{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.compact-actions .icon{width:15px;height:15px}.dash-tool-heading h2>span:first-child{background:transparent!important;box-shadow:none!important;border:0!important}
@media(max-width:700px){.settings-content .grid2,.settings-content .twocol{grid-template-columns:1fr}.settings-content .formbody{padding:14px}.settings-content .settings-page-tabs button{padding:8px 10px}}

.task-summary{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 16px}.task-summary button{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:8px;padding:11px 16px;font-size:12px;display:flex;align-items:center;gap:9px}.task-summary strong{font-size:19px;color:var(--accent)}.task-toolbar{display:flex;align-items:center;justify-content:space-between;padding:12px;gap:10px;flex-wrap:wrap}.task-toolbar .settings-page-tabs{margin:0}.task-toolbar select{padding:8px;font-size:12px}.task-title{white-space:normal;text-align:left;max-width:300px}.task-muted{display:block;color:var(--muted);margin-top:4px}.task-overdue{color:var(--accent);font-weight:700}.task-detail{gap:16px}.task-detail h3{font-size:13px;margin:0 0 10px}.task-detail p{margin:0;font-size:13px;line-height:1.6}.task-description{white-space:pre-wrap;overflow-wrap:anywhere}.task-subtasks{display:grid;gap:9px}.task-subtasks label{display:flex;align-items:center;gap:9px}.task-subtasks input{width:16px;height:16px}.task-history{display:grid;gap:10px;max-height:280px;overflow:auto}.task-history article{padding:10px 12px;background:var(--bg);border:1px solid var(--line);border-radius:7px}.task-history small{font-size:11px;color:var(--muted)}.task-history p{white-space:pre-wrap;overflow-wrap:anywhere}.task-file{display:block;color:var(--ink);padding:6px 0;font-size:12px}.task-upload{font-size:12px;margin-top:12px}.task-upload input{padding:8px}.task-form,.task-detail{padding:18px!important}#task-comment-form{display:grid;gap:10px}#task-comment-form button{justify-self:end}.task-form textarea,.task-detail textarea{width:100%;resize:vertical;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:10px;font:inherit}

.dashboard-tool .dash-tool-heading>span{background:transparent!important;border:0!important;box-shadow:none!important}

.settings-content input:not([type=checkbox]):not([type=radio]):not([type=file]),.settings-content select{height:36px}.task-toolbar .settings-page-tabs{display:flex;gap:4px;flex-wrap:wrap}.task-toolbar .settings-page-tabs button{padding:8px 11px;border-radius:6px;font-size:12px}.task-toolbar .settings-page-tabs button.active{background:var(--accent-soft);color:var(--accent)}

.employee-row-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}.employee-row-actions .btn{display:inline-grid;place-items:center;min-width:32px;width:32px;height:32px;min-height:32px;padding:0;font-size:16px;line-height:1;border-radius:7px}.employee-row-actions .btn:hover{background:var(--accent-soft);border-color:var(--accent)}

.employee-person-button{display:block;background:transparent;border:0;padding:0;color:inherit;font:inherit;text-align:left;cursor:pointer;border-radius:7px}.employee-person-button:hover strong{color:var(--accent)}.employee-person-button:focus-visible{outline:2px solid var(--accent);outline-offset:4px}

.employee-mall-text,.employee-role-text{background:transparent;border:0;border-radius:0;padding:0;box-shadow:none;font-weight:400}.employee-home-mall{color:#23774a;font-weight:600}html[data-mode=dark] .employee-home-mall{color:#80d7a8}.employee-role-text{white-space:normal}

.employee-list-filters{display:flex;align-items:end;gap:12px;margin-left:auto}.employee-list-filters label{display:grid;gap:6px;font-size:12px;color:var(--muted)}.employee-list-filters input,.employee-list-filters select{height:36px;min-height:36px;padding:7px 10px;font-size:13px}.employee-list-filters input{width:230px;max-width:100%;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:7px}@media(max-width:600px){.cardhead:has(.employee-list-filters){flex-wrap:wrap;gap:12px}.employee-list-filters{width:100%;margin-left:0;gap:10px}.employee-list-filters label:first-child{flex:1;min-width:0}.employee-list-filters input{width:100%;min-width:0}}

/* Personnel list: compact hierarchy and aligned actions. */
.employee-list-card{overflow:hidden;border-radius:12px}.employee-list-card>.cardhead{padding:14px 18px;gap:16px;min-height:66px}.employee-list-card>.cardhead h2{display:flex;align-items:center;gap:7px;font-size:15px;white-space:nowrap}.employee-list-card>.cardhead h2 .pill{font-size:11px;padding:3px 7px;min-width:24px;text-align:center}.employee-list-card table{table-layout:fixed;min-width:1050px;width:100%}.employee-list-card th{padding:11px 14px;background:color-mix(in srgb,var(--accent) 5%,var(--surface));font-size:11px;font-weight:600;letter-spacing:.35px;color:var(--muted)}.employee-list-card td{padding:12px 14px;vertical-align:middle;font-size:12px;line-height:1.55}.employee-list-card th+th,.employee-list-card td+td{border-left:1px solid color-mix(in srgb,var(--line) 65%,transparent)}.employee-list-card tbody tr:hover{background:color-mix(in srgb,var(--accent) 3%,var(--surface))}.employee-list-card th:nth-child(1){width:27%}.employee-list-card th:nth-child(2){width:24%}.employee-list-card th:nth-child(3){width:15%}.employee-list-card th:nth-child(4){width:11%}.employee-list-card th:nth-child(5){width:9%}.employee-list-card th:nth-child(6){width:14%}.employee-list-card td:first-child{white-space:normal;overflow-wrap:anywhere}.employee-list-card .person{gap:10px}.employee-list-card .person .avatar{width:32px;height:32px;min-width:32px;font-size:11px;border-radius:10px}.employee-list-card .person strong{font-size:13px;line-height:1.4}.employee-list-card .person small{font-size:11px;line-height:1.4;margin-top:3px}.employee-list-card td:first-child>small{font-size:11px!important;margin:4px 0 0 42px!important;line-height:1.4;color:var(--muted)}.employee-list-card td:nth-child(2)>strong{font-size:12px;line-height:1.6;max-width:none!important}.employee-list-card td:nth-child(4){white-space:nowrap;font-size:12px;color:var(--muted)}.employee-list-card td:nth-child(5) .balance{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink)}.employee-list-card .employee-row-actions{gap:4px}.employee-list-card .employee-row-actions .btn{width:28px;min-width:28px;height:28px;min-height:28px;font-size:14px;border-radius:6px;background:var(--surface);box-shadow:none}.employee-list-card .employee-row-actions .btn:hover{background:var(--accent-soft);transform:translateY(-1px)}.employee-list-card .cardfooter{padding:10px 18px;font-size:11px}.employee-list-card .employee-list-filters{gap:10px}.employee-list-card .employee-list-filters input{width:210px}.employee-list-card .employee-list-filters select{min-width:100px}.employee-list-card .employee-list-filters input:focus{outline:2px solid color-mix(in srgb,var(--accent) 30%,transparent);outline-offset:1px;border-color:var(--accent)}
#modal:has(#employee-edit-form)>.modalhead{background:color-mix(in srgb,var(--accent) 10%,var(--surface));border-bottom:1px solid color-mix(in srgb,var(--accent) 20%,var(--line));padding:16px 20px}#modal:has(#employee-edit-form)>.modalhead h2{font-size:17px;font-weight:600}#modal:has(#employee-edit-form)>.modalhead button{color:var(--ink);border-radius:6px}
@media(max-width:600px){.employee-list-card>.cardhead{padding:12px 14px}.employee-list-card .employee-list-filters input{width:100%}.employee-list-card .employee-row-actions .btn{width:32px;height:32px;min-height:32px;min-width:32px}}

.employee-list-card table{min-width:960px}.employee-list-card th:nth-child(2){width:22%}.employee-list-card th:nth-child(3){width:13%}.employee-list-card th:nth-child(5){width:11%}.employee-list-card th:nth-child(6){width:16%}.employee-list-card td:nth-child(5) .pill{white-space:normal;max-width:100%;font-size:10px;line-height:1.4;padding:4px 6px;box-sizing:border-box}.employee-list-card .person strong{font-size:13px;font-weight:600;letter-spacing:-.15px;line-height:1.45;color:var(--ink)}.employee-list-card .employee-person-button:hover .person strong{color:var(--accent)}

.employee-list-card>.cardhead{background:color-mix(in srgb,var(--accent) 7%,var(--surface));border-bottom:1px solid color-mix(in srgb,var(--accent) 16%,var(--line));padding:14px 18px;min-height:64px;box-sizing:border-box;align-items:center}.employee-list-card>.cardhead h2{gap:9px;font-size:16px;font-weight:600;color:var(--ink)}.employee-heading-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:color-mix(in srgb,var(--accent) 12%,var(--surface));color:var(--accent)}.employee-heading-icon .icon{width:17px;height:17px;margin:0;opacity:1;color:inherit}.employee-list-card>.cardhead h2 .pill{background:color-mix(in srgb,var(--accent) 12%,var(--surface));color:var(--accent);font-weight:600;border-radius:6px;padding:3px 7px}.employee-list-card .employee-list-filters{align-items:center;gap:8px}.employee-list-card .employee-list-filters label{gap:0}.employee-list-card .employee-list-filters input,.employee-list-card .employee-list-filters select{height:34px;min-height:34px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:7px}.employee-list-card .employee-list-filters input{width:220px}.employee-list-card .employee-list-filters input::placeholder{color:var(--muted)}@media(max-width:600px){.employee-list-card .employee-list-filters input{width:100%}}

.employee-list-card>.cardhead h2{flex-wrap:wrap}.employee-heading-scope{display:inline-flex;align-items:center;gap:9px;font-size:12px;font-weight:500;color:var(--muted);white-space:normal}.employee-heading-scope:before{content:"";display:inline-block;width:1px;height:14px;background:var(--line)}

/* Shared personnel/leave section language. */
.leave-navigation-panel{background:color-mix(in srgb,var(--accent) 7%,var(--surface));border:1px solid color-mix(in srgb,var(--accent) 16%,var(--line));border-radius:12px;margin:0 0 18px;overflow:hidden}.leave-navigation-heading{display:flex;align-items:center;gap:9px;padding:13px 18px}.leave-navigation-heading h2{font-size:16px;font-weight:600;margin:0;color:var(--ink)}.leave-navigation-heading .employee-heading-scope{font-size:12px}.leave-navigation-panel .leave-hub-nav{margin:0;padding:5px 10px 9px;gap:4px;border:0;border-radius:0;background:transparent;box-shadow:none}.leave-navigation-panel .leave-hub-nav>button{padding:9px 12px;font-size:12px;font-weight:500;border-radius:7px;min-height:34px}.leave-navigation-panel .leave-hub-nav>button.active{background:var(--surface);color:var(--accent);border-color:color-mix(in srgb,var(--accent) 20%,var(--line));box-shadow:0 1px 3px color-mix(in srgb,var(--ink) 5%,transparent);font-weight:600}.leave-navigation-panel .leave-hub-nav>button.active:after{display:none}.leave-workspace .card>.cardhead{background:color-mix(in srgb,var(--accent) 7%,var(--surface));border-bottom:1px solid color-mix(in srgb,var(--accent) 16%,var(--line));padding:14px 18px;min-height:60px;box-sizing:border-box}.leave-workspace .cardhead h2{font-size:15px;font-weight:600}.leave-workspace .cardhead p{font-size:11px;line-height:1.5;margin-top:4px}.leave-workspace .cardhead>.pill,.leave-workspace .cardhead h2 .pill{background:color-mix(in srgb,var(--accent) 12%,var(--surface));color:var(--accent);font-size:11px;padding:3px 7px}.leave-workspace .card thead th{font-size:11px;padding:11px 14px;background:color-mix(in srgb,var(--accent) 5%,var(--surface))}.leave-workspace .card tbody td{padding:12px 14px}.leave-workspace .leave-detail-icon{width:28px;height:28px;font-size:14px}@media(max-width:600px){.leave-navigation-heading{padding:12px 14px;flex-wrap:wrap}.leave-navigation-panel .leave-hub-nav{padding:4px 7px 8px}.leave-navigation-panel .leave-hub-nav>button{padding:8px 10px}.leave-workspace .card>.cardhead{padding:12px 14px}}

.leave-navigation-panel .leave-hub-nav{gap:7px;padding:5px 14px 13px}.leave-navigation-panel .leave-hub-nav>button{background:color-mix(in srgb,var(--surface) 80%,transparent);border:1px solid color-mix(in srgb,var(--accent) 13%,var(--line));color:var(--ink);box-shadow:0 1px 2px color-mix(in srgb,var(--ink) 3%,transparent);padding:9px 13px;gap:7px}.leave-navigation-panel .leave-hub-nav>button .icon{width:15px;height:15px;opacity:.7;color:var(--muted)}.leave-navigation-panel .leave-hub-nav>button:hover{border-color:color-mix(in srgb,var(--accent) 45%,var(--line));background:var(--surface);color:var(--accent)}.leave-navigation-panel .leave-hub-nav>button.active{background:var(--accent);color:var(--on-accent,#fff);border-color:var(--accent);box-shadow:0 2px 4px color-mix(in srgb,var(--accent) 18%,transparent)}.leave-navigation-panel .leave-hub-nav>button.active .icon{color:inherit;opacity:1}.leave-navigation-panel .leave-hub-nav>button.active .leave-pending-count{color:inherit}.leave-list-search{display:flex;align-items:center;gap:7px;margin-left:auto;background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:0 10px;height:34px;box-sizing:border-box}.leave-list-search>.icon{width:15px;height:15px;color:var(--muted)}.leave-list-search input{width:205px;max-width:100%;height:32px;padding:6px 0;border:0;background:transparent;box-shadow:none;color:var(--ink);font-size:12px;outline:none}.leave-list-search:focus-within{border-color:var(--accent);outline:2px solid color-mix(in srgb,var(--accent) 15%,transparent)}@media(max-width:600px){.leave-list-search{width:100%;margin-left:0}.leave-list-search input{width:100%;min-width:0}.leave-navigation-panel .leave-hub-nav{padding:4px 10px 11px;gap:6px}}

.employee-list-card .employee-list-filters #mall-filter{max-width:180px;min-width:130px}.employee-list-card .employee-list-filters input{width:200px}@media(max-width:700px){.employee-list-card>.cardhead{flex-wrap:wrap}.employee-list-card .employee-list-filters{width:100%;flex-wrap:wrap}.employee-list-card .employee-list-filters label:has(#employee-list-search){flex:1;min-width:120px}.employee-list-card .employee-list-filters input{width:100%}.employee-list-card .employee-list-filters label:has(#mall-filter){flex:0 1 auto}.employee-list-card .employee-list-filters #mall-filter{max-width:100%;min-width:110px}}

.leave-header-filters{display:flex;align-items:center;gap:8px;margin-left:auto}.leave-header-filters>label{display:flex;align-items:center}.leave-header-filters .leave-list-search{margin-left:0}.leave-header-filters #mall-filter{height:34px;min-height:34px;min-width:130px;max-width:180px;padding:6px 10px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);font-size:12px}@media(max-width:700px){.leave-navigation-heading{flex-wrap:wrap}.leave-header-filters{width:100%;margin-left:0}.leave-header-filters .leave-list-search{flex:1;width:auto;min-width:0}.leave-header-filters .leave-list-search input{width:100%;min-width:0}.leave-header-filters #mall-filter{min-width:110px;max-width:160px}}

#modal:has(.leave-movement-dialog){width:min(1000px,calc(100vw - 32px));max-width:1000px}#modal:has(.leave-movement-dialog)>.modalhead{background:color-mix(in srgb,var(--accent) 8%,var(--surface));padding:15px 20px}.leave-movement-dialog{padding:18px 20px!important;gap:16px!important}.leave-movement-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.leave-movement-toolbar .btn{padding:7px 10px;min-height:32px;font-size:12px}.leave-movement-summary{display:flex;gap:24px;padding:12px 14px;background:var(--bg);border:1px solid var(--line);border-radius:8px;flex-wrap:wrap}.leave-movement-summary>span{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--muted)}.leave-movement-summary strong{font-size:16px;color:var(--ink);font-variant-numeric:tabular-nums}.leave-movement-dialog table{width:100%}.leave-movement-dialog th{font-size:10px;padding:10px 12px;background:color-mix(in srgb,var(--accent) 5%,var(--surface))}.leave-movement-dialog td{font-size:12px;padding:10px 12px;vertical-align:top}.leave-movement-dialog .movement-description{white-space:normal;min-width:180px;max-width:360px}.movement-description small{display:block;font-size:11px;line-height:1.5;color:var(--muted);margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere}.movement-review{color:var(--accent)!important}.movement-audit{font-size:11px;padding:10px 12px;border:1px solid var(--line);border-radius:6px}.movement-audit small{display:block;margin-top:4px;color:var(--muted)}

.dash-calendar-month{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.dash-calendar-month strong{font-size:13px;text-transform:capitalize}.dash-calendar-month .btn{padding:2px 9px;min-height:27px}.dash-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin-bottom:12px}.dash-calendar-grid>small{text-align:center;font-size:10px;color:var(--muted);padding:4px}.dash-calendar-day{min-height:48px;padding:4px;background:var(--bg);border:1px solid var(--line);border-radius:5px;overflow:hidden}.dash-calendar-day>b{display:block;font-size:10px;font-weight:500;color:var(--muted)}.dash-calendar-day.is-today{border-color:var(--accent);background:var(--accent-soft)}.dash-calendar-day button,.dash-calendar-day>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;font-size:8px;text-align:left;color:var(--accent);padding:2px 0;background:transparent;border:0}.dash-calendar-day>small{font-size:8px;color:var(--muted)}

#modal:has(.leave-movement-dialog){width:min(860px,calc(100vw - 32px));max-width:860px;max-height:86vh}.leave-movement-dialog{padding:14px 16px!important;gap:12px!important}#modal:has(.leave-movement-dialog)>.modalhead{padding:12px 16px}.leave-movement-dialog td{padding:8px 10px;font-size:11px}.leave-movement-dialog th{padding:9px 10px}.leave-movement-summary{padding:9px 12px;gap:18px}.leave-movement-summary strong{font-size:14px}.leave-movement-toolbar .person strong{font-size:13px}.leave-movement-dialog .movement-description{min-width:150px;max-width:290px}.leave-movement-dialog .movement-icon-action{width:27px;min-width:27px;height:27px;min-height:27px;padding:0;display:grid;place-items:center;font-size:13px;border-radius:6px}.leave-movement-dialog .compact-actions{gap:6px}.leave-movement-dialog .compact-actions .btn{font-size:11px;padding:6px 8px;min-height:29px}

#modal:has(.leave-movement-dialog)>.modalhead{background:linear-gradient(110deg,color-mix(in srgb,var(--accent) 14%,var(--surface)),color-mix(in srgb,var(--accent) 5%,var(--surface)));border-bottom:1px solid color-mix(in srgb,var(--accent) 25%,var(--line));box-shadow:inset 4px 0 var(--accent);padding:14px 18px}#modal:has(.leave-movement-dialog)>.modalhead h2{font-size:17px;font-weight:600;letter-spacing:-.3px}.leave-movement-dialog:has([data-history-view="movements"]) table,.leave-movement-dialog:has([data-history-view="all"]) table{table-layout:fixed}.leave-movement-dialog:has([data-history-view="movements"]) th:nth-child(1),.leave-movement-dialog:has([data-history-view="all"]) th:nth-child(1){width:16%}.leave-movement-dialog:has([data-history-view="movements"]) th:nth-child(2),.leave-movement-dialog:has([data-history-view="all"]) th:nth-child(2){width:16%}.leave-movement-dialog:has([data-history-view="movements"]) th:nth-child(3),.leave-movement-dialog:has([data-history-view="all"]) th:nth-child(3){width:34%}.leave-movement-dialog:has([data-history-view="movements"]) th:nth-child(4),.leave-movement-dialog:has([data-history-view="all"]) th:nth-child(4){width:9%}.leave-movement-dialog:has([data-history-view="movements"]) th:nth-child(5),.leave-movement-dialog:has([data-history-view="all"]) th:nth-child(5){width:16%}.leave-movement-dialog:has([data-history-view="movements"]) th:nth-child(6),.leave-movement-dialog:has([data-history-view="all"]) th:nth-child(6){width:9%}.leave-movement-dialog .movement-description{min-width:0;max-width:245px;overflow-wrap:anywhere}.leave-movement-dialog th{background:color-mix(in srgb,var(--accent) 10%,var(--surface));color:var(--ink);border-bottom:1px solid color-mix(in srgb,var(--accent) 22%,var(--line));font-weight:600}.leave-movement-dialog td .pill{white-space:normal;font-size:10px;padding:4px 6px}.leave-movement-dialog .tablewrap{border:1px solid var(--line);border-radius:7px}.leave-movement-dialog table td:first-child,.leave-movement-dialog table td:nth-child(2){white-space:normal}@media(max-width:650px){.leave-movement-dialog table{min-width:650px}}

.leave-personal-grid>.card>.cardhead{height:74px;min-height:74px;box-sizing:border-box;display:flex;align-items:center;flex-wrap:nowrap;gap:12px}.leave-personal-grid>.card>.cardhead h2{margin:0;line-height:21px}.leave-personal-grid>.card>.cardhead p{margin:4px 0 0;line-height:16px}.leave-personal-grid>.card table thead tr{height:40px}.leave-personal-grid>.card table thead th{vertical-align:middle;box-sizing:border-box}.leave-personal-grid{align-items:start}@media(max-width:600px){.leave-personal-grid>.card>.cardhead{height:auto;min-height:74px;flex-wrap:wrap}}

.leave-workspace .calgrid>.calday:nth-last-child(-n+7){border-bottom:1px solid var(--line)}.leave-workspace .calday-empty{background:color-mix(in srgb,var(--ink) 1%,var(--surface))}

.permission-role-panel{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px;margin:14px 0;background:color-mix(in srgb,var(--accent) 5%,var(--surface))}.permission-role-panel>div:first-child{min-width:0}.permission-role-panel strong{font-size:13px}.permission-role-panel small,.permission-role-editor-heading small{display:block;font-size:11px;color:var(--muted);margin-top:5px;line-height:1.5}.permission-role-panel select{min-width:155px;max-width:230px;height:34px;padding:6px 9px;font-size:12px}.permission-role-panel .btn,.permission-role-directory .btn{min-height:32px;padding:7px 10px;font-size:12px}.permission-account-settings{border:1px solid var(--line);border-radius:8px;margin-bottom:15px;background:var(--surface)}.permission-account-settings>summary{padding:10px 14px;font-size:12px;font-weight:500;cursor:pointer;color:var(--muted)}.permission-account-settings-body{display:flex;align-items:center;gap:12px;padding:12px 14px;border-top:1px solid var(--line);flex-wrap:wrap}.permission-account-settings-body>div{flex:1}.permission-account-settings-body strong{font-size:12px}.permission-account-settings-body p{font-size:11px;line-height:1.5;color:var(--muted);margin:5px 0}.permission-account-settings-body .btn{font-size:12px;padding:7px 10px;min-height:32px}.personal-permission-tag{display:inline-block;margin-left:7px;padding:2px 6px;border-radius:5px;background:var(--accent-soft);color:var(--accent);font-size:10px}.permission-operation-row .linkbtn,.permission-table .linkbtn[data-role-override-reset]{margin-left:7px;font-size:10px}.permission-role-editor-heading{padding:16px 18px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:18px;margin-bottom:16px}.permission-role-editor-heading label{display:grid;gap:6px;font-size:12px;color:var(--muted)}.permission-role-editor-heading input{padding:9px 11px;font-size:14px}.permission-role-directory .row{gap:12px;flex-wrap:wrap}@media(max-width:800px){.permission-role-panel{align-items:flex-start;flex-direction:column}.permission-role-panel .compact-actions{width:100%}.permission-role-editor-heading{grid-template-columns:1fr}.permission-role-panel select{max-width:100%}}

/* Restrained, responsive local-auth sign-in. */
.login-screen{min-height:100svh;grid-template-columns:minmax(340px,43%) minmax(0,57%);background:var(--bg)}.login-screen .welcome-art{background:#20292d;color:#fff;padding:46px 52px;min-height:100svh;display:flex;flex-direction:column;justify-content:space-between}.login-screen .welcome-art:before{display:none}.login-screen .welcome-art:after{width:420px;height:420px;border:1px solid #ffffff0b;border-radius:0;bottom:-210px;right:-150px;transform:rotate(30deg)}.login-screen .welcome-art .brand{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:13px;width:auto;max-width:100%;margin:0;padding:0}.login-brand-symbol{display:block;width:48px;height:48px;object-fit:contain;filter:brightness(0) invert(1)}.login-brand-wordmark{display:block;width:210px;max-width:100%;height:auto;object-fit:contain}.login-screen .brand small{font-size:8px;letter-spacing:3px;margin-top:8px;color:#b7c1c4;text-align:left;line-height:1.5}.login-screen .welcome-art .custom-brand img{width:230px!important;max-width:100%;height:70px;object-fit:contain;filter:brightness(0) invert(1)}.login-screen .welcome-copy{padding:42px 0;max-width:420px}.login-section-label{font-size:10px;letter-spacing:2.5px;font-weight:500;color:#aebabe}.login-screen .welcome-copy h1{font-size:clamp(33px,3.4vw,52px);font-weight:500;line-height:1.2;letter-spacing:-1.8px;margin-top:17px;color:#f6f7f5}.login-brand-rule{height:3px;width:42px;background:var(--accent);margin-top:28px;border-radius:2px}.login-screen .welcome-art footer{font-size:10px;color:#9aa8ad}.login-screen .welcome-form{display:flex;align-items:center;justify-content:center;padding:72px 36px;background:var(--bg);min-height:100svh}.login-screen .login-card{max-width:410px;width:100%;margin:0;padding:32px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 30px color-mix(in srgb,var(--ink) 4%,transparent)}.login-screen .welcome-form h2{font-size:25px;font-weight:600;letter-spacing:-.65px;margin:0 0 27px;color:var(--ink)}.login-screen .login-form{display:grid;gap:18px;margin:0}.login-screen .login-form>label:not(.remember-me){display:grid;gap:7px;font-size:12px;font-weight:500;color:var(--ink)}.login-screen .login-form input:not([type=checkbox]){width:100%;height:44px;min-height:44px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--ink) 15%,var(--surface));border-radius:7px;background:var(--surface);color:var(--ink);font-size:14px;font-weight:400;box-shadow:none}.login-screen .login-form input:not([type=checkbox]):focus{border-color:var(--accent)!important;outline:2px solid color-mix(in srgb,var(--accent) 15%,transparent);outline-offset:1px}.login-screen .remember-me{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:400;color:var(--muted);margin:0}.login-screen .remember-me input{width:15px;height:15px;margin:0;accent-color:var(--accent)}.login-screen .remember-me small{font-size:10px;color:var(--muted);margin-left:auto}.login-screen .login-form .formerror:empty{display:none}.login-screen .login-form .formerror{font-size:12px;line-height:1.5;color:#b45145;margin:0}.login-screen .welcome-form .btn.primary{width:100%;height:42px;min-height:42px;padding:10px 14px;background:var(--accent);color:var(--on-accent,#fff);font-size:13px;font-weight:600;border-radius:7px;box-shadow:none}.login-screen .welcome-form .btn.primary:hover{filter:brightness(.96);transform:none}.login-screen .welcome-form .fineprint{font-size:10px;line-height:1.7;margin:0;padding-top:1px;text-align:left;color:var(--muted)}.login-screen .welcome-version{top:24px;right:30px;font-size:10px;font-weight:400;color:var(--muted);letter-spacing:0}.login-screen .welcome-form .bottom{bottom:22px;font-size:10px;color:var(--muted)}.login-mobile-brand{display:none}
@media(max-width:1000px){.login-screen .welcome-art{padding:36px 30px}.login-brand-wordmark{width:175px}.login-brand-symbol{width:40px;height:40px}.login-screen .welcome-form{padding:64px 26px}.login-screen .login-card{padding:28px}}
@media(max-width:760px){.login-screen{grid-template-columns:1fr;min-height:100svh}.login-screen .welcome-art{display:none}.login-screen .welcome-form{min-height:100svh;padding:68px 20px 50px}.login-screen .login-card{padding:27px 24px;max-width:390px}.login-mobile-brand{display:block;margin-bottom:30px}.login-mobile-brand .brand{display:flex;align-items:center;flex-direction:row;justify-content:flex-start;gap:10px}.login-mobile-brand .login-brand-wordmark{width:174px;filter:brightness(0)}.login-mobile-brand .login-brand-symbol{width:38px;height:38px;filter:brightness(0)}.login-mobile-brand .brand small{font-size:7px;letter-spacing:2.5px;color:var(--muted)}.login-mobile-brand .custom-brand img{max-width:210px;height:55px;object-fit:contain}.login-screen .welcome-form h2{font-size:24px;margin-bottom:24px}.login-screen .welcome-version{top:22px;right:22px;font-size:9px}.login-screen .welcome-form .bottom{bottom:16px}html[data-mode=dark] .login-mobile-brand .login-brand-wordmark,html[data-mode=dark] .login-mobile-brand .login-brand-symbol{filter:brightness(0) invert(1)}}
@media(max-height:620px) and (min-width:761px){.login-screen .welcome-art{padding-top:28px;padding-bottom:28px}.login-screen .welcome-copy{padding:25px 0}.login-screen .welcome-copy h1{font-size:34px}.login-screen .welcome-form{padding-top:60px;padding-bottom:45px}}

/* Anaterras sign-in — warm architectural identity. */
.login-editorial{display:flex;align-items:center;justify-content:center;min-height:100svh;padding:32px;background:radial-gradient(ellipse at 12% 0%,color-mix(in srgb,var(--accent) 9%,#eeeae4),transparent 58%),#eeeae4}.login-frame{display:grid;grid-template-columns:47% 53%;width:100%;max-width:1220px;min-height:min(720px,calc(100svh - 64px));border-radius:22px;overflow:hidden;border:1px solid #fff9;box-shadow:0 24px 75px #33251716,0 4px 14px #33251709}.login-editorial .welcome-art{min-height:0;height:auto;padding:42px 44px;background:radial-gradient(ellipse at 100% 105%,color-mix(in srgb,var(--accent) 78%,#6c4f34),#4b3827 46%,#30271f 100%);isolation:isolate}.login-editorial .welcome-art:before,.login-editorial .welcome-art:after{display:none}.login-editorial .welcome-art>.brand{align-self:flex-start!important;width:auto!important;margin:0!important;max-width:100%!important;justify-content:flex-start;gap:12px}.login-editorial .login-brand-symbol{width:47px;height:47px}.login-editorial .login-brand-wordmark{width:205px}.login-editorial .brand small{font-size:7px;letter-spacing:2.9px;color:#d6c6b5;margin-top:7px}.login-architecture{position:absolute;inset:0;width:100%;height:100%;color:#f2d1a5;opacity:.055;z-index:-1;pointer-events:none}.login-editorial .welcome-copy{padding:70px 0 76px;margin:auto 0 0;max-width:100%}.login-eyebrow{display:flex;align-items:center;gap:10px;font-size:9px;font-weight:500;letter-spacing:2.3px;color:#d0bca7;margin-bottom:25px}.login-eyebrow>span{width:23px;height:1px;background:#c9a37b}.login-editorial .welcome-copy h1{font-size:clamp(36px,3.6vw,52px);line-height:1.13;letter-spacing:-1.7px;font-weight:500;max-width:440px;margin:0;color:#fffaf3}.login-editorial .welcome-copy h1 em{font-style:normal;color:#dac3a7;font-weight:400}.login-editorial .welcome-art footer{color:#bcaa98;font-size:9px;font-weight:400;letter-spacing:.2px}.login-editorial .welcome-form{min-height:0;background:#fcfbf8;padding:90px 64px 76px;display:flex;align-items:center;justify-content:center;position:relative}.login-editorial .login-card{background:transparent;border:0;box-shadow:none;max-width:365px;padding:0;margin:0}.login-form-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,#fcfbf8);border:1px solid color-mix(in srgb,var(--accent) 12%,#fcfbf8);margin-bottom:22px}.login-form-mark .icon{width:21px;height:21px}.login-editorial .welcome-form h2{font-size:31px;font-weight:600;line-height:1.25;letter-spacing:-.85px;margin:0 0 34px;color:#302d29}.login-editorial .login-form{gap:21px}.login-editorial .login-form>label:not(.remember-me){font-size:12px;font-weight:500;color:#5a544d;gap:8px}.login-input-wrap{display:flex;align-items:center;gap:10px;height:48px;border:1px solid #ded8cf;border-radius:8px;background:#fff;transition:border-color .15s,box-shadow .15s;padding:0 13px}.login-input-wrap>.icon{width:17px;height:17px;color:#a3998d;stroke-width:1.5}.login-editorial .login-form .login-input-wrap input{height:44px;min-height:0;flex:1;min-width:0;width:100%;padding:10px 0;border:0!important;border-radius:0;background:transparent;color:#302d29;font-size:14px;font-weight:400;outline:0!important;box-shadow:none}.login-input-wrap:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent)}.login-password-toggle{display:grid;place-items:center;width:26px;height:30px;padding:0;color:#a3998d;flex-shrink:0}.login-password-toggle:hover{color:var(--accent)}.login-password-toggle .icon{width:17px;height:17px}.login-editorial .remember-me{font-size:11px;color:#746d63;margin:0}.login-editorial .remember-me input{width:14px;height:14px}.login-editorial .remember-me small{font-size:10px;color:#a39789}.login-editorial .welcome-form .btn.primary{height:46px;min-height:46px;margin-top:3px;font-size:13px;font-weight:600;border:1px solid color-mix(in srgb,var(--accent) 85%,#463221);background:linear-gradient(110deg,color-mix(in srgb,var(--accent) 92%,#30271f),var(--accent));border-radius:8px;box-shadow:0 4px 12px color-mix(in srgb,var(--accent) 15%,transparent);justify-content:space-between;padding:11px 16px;color:#fff}.login-editorial .welcome-form .btn.primary:hover{filter:brightness(1.04);box-shadow:0 5px 16px color-mix(in srgb,var(--accent) 22%,transparent)}.login-editorial .welcome-form .fineprint{font-size:10px;color:#8b8073;line-height:1.7;margin-top:0;padding-top:2px}.login-editorial .welcome-version{font-size:9px;color:#9c9185;top:25px;right:30px}.login-editorial .welcome-form .bottom{font-size:9px;letter-spacing:1.5px;text-transform:uppercase;color:#b1a596;bottom:25px}
@media(min-width:1500px){.login-editorial{padding:48px}.login-frame{max-width:1320px;min-height:750px}.login-editorial .welcome-art{padding:48px 52px}.login-editorial .welcome-copy h1{font-size:56px}}
@media(max-width:1000px){.login-editorial{padding:22px}.login-frame{grid-template-columns:45% 55%;min-height:650px}.login-editorial .welcome-art{padding:32px 28px}.login-editorial .login-brand-wordmark{width:160px}.login-editorial .login-brand-symbol{width:38px;height:38px}.login-editorial .welcome-form{padding:76px 34px 64px}.login-editorial .welcome-copy h1{font-size:36px;letter-spacing:-1.1px}}
@media(max-width:760px){.login-editorial{display:flex;padding:20px 15px;background:#eeeae4;align-items:center}.login-frame{grid-template-columns:1fr;max-width:440px;min-height:0;border-radius:16px}.login-editorial .welcome-art{display:flex!important;padding:23px 26px;min-height:110px;justify-content:center}.login-editorial .welcome-copy,.login-editorial .welcome-art footer{display:none}.login-editorial .welcome-art>.brand{align-self:flex-start!important}.login-editorial .login-brand-wordmark{width:180px}.login-editorial .login-brand-symbol{width:39px;height:39px}.login-editorial .welcome-form{display:flex;min-height:0;padding:69px 27px 56px}.login-editorial .login-card{max-width:none;padding:0}.login-form-mark{display:none}.login-editorial .welcome-form h2{font-size:27px;margin-bottom:27px}.login-editorial .welcome-version{font-size:8px;top:20px;right:26px}.login-editorial .welcome-form .bottom{font-size:8px;bottom:19px}.login-editorial .login-form{gap:19px}.login-architecture{opacity:.08}.login-editorial .brand small{font-size:6px}}
@media(prefers-reduced-motion:reduce){.login-input-wrap{transition:none}}

.login-editorial{--accent:#97683e;--on-accent:#fff}

.login-form-links{display:flex;align-items:center;justify-content:space-between;gap:12px}.login-forgot-link,.login-back-link{padding:0;background:transparent;border:0;font-size:11px;font-weight:500;color:var(--accent);text-decoration:none;line-height:1.6}.login-forgot-link:hover,.login-back-link:hover{text-decoration:underline}.login-back-link{justify-self:center;margin-top:3px}.login-recovery-note{font-size:11px!important;line-height:1.7!important;color:#8b8073!important;margin:0!important}.login-recovery-success{font-size:11px;line-height:1.7;color:#3f7559;background:#edf4ef;border:1px solid #d7e5dc;border-radius:7px;padding:10px 12px}.login-recovery-success:empty{display:none}.login-editorial .login-form-links .remember-me{font-size:11px}.login-editorial .login-form .login-back-link{font-size:11px}.login-editorial .login-form:has(.login-recovery-success:not(:empty)) .btn.primary{opacity:.65}

/* Mobile sign-in mirrors the rounded brand band. */
@media(max-width:760px){
 .login-editorial .welcome-form:has(#login-form){padding-bottom:0}
 .login-editorial .welcome-form:has(#login-form) .bottom{display:none}
 .login-editorial #login-form .btn.primary{width:calc(100% + 54px);margin:9px -27px 0;min-height:110px;height:110px;padding:23px 27px;border:0;border-radius:0 0 16px 16px;background:radial-gradient(ellipse at 100% -5%,color-mix(in srgb,var(--accent) 78%,#6c4f34),#4b3827 46%,#30271f 100%);box-shadow:none;font-size:16px;justify-content:center;gap:15px}
 .login-editorial #login-form .btn.primary .icon{width:21px;height:21px}
}

.login-mobile-product{display:none}
@media(max-width:760px){
 .login-editorial .welcome-art{padding:20px 26px;gap:12px}
 .login-mobile-product{display:block;color:#f6eee3;font-size:12px;line-height:18px;font-weight:400;letter-spacing:.12px}
 .login-mobile-product em{font-style:normal;color:#dac3a7}
}

.login-entry-emblem{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1px solid #ffffff35;background:#ffffff0a;flex-shrink:0}
.login-entry-emblem svg{width:22px;height:22px}
@media(max-width:760px){
 .login-editorial #login-form .btn.primary{position:relative;isolation:isolate;overflow:hidden}
 .login-editorial #login-form .btn.primary::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.08;transform:rotate(180deg);background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20600%20760%22%20fill%3D%22none%22%3E%3Cg%20stroke%3D%22%23f2d1a5%22%3E%3Cpath%20d%3D%22M-140%20840C-30%20410%20150%20185%20700%20120%22%20stroke-width%3D%2292%22%2F%3E%3Cpath%20d%3D%22M-40%20850C80%20480%20270%20345%20690%20330%22%20stroke-width%3D%2250%22%2F%3E%3Cpath%20d%3D%22M100%20850C220%20585%20410%20535%20710%20550%22%20stroke-width%3D%2226%22%2F%3E%3Cpath%20d%3D%22M-180%20840C-70%20330%20160%20100%20700%2045%22%20stroke-width%3D%221%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/100% 100% no-repeat}
}

/* Crop the wordmark's transparent lower padding without altering the artwork. */
.login-editorial .login-brand-wordmark{aspect-ratio:680/54;height:auto;overflow:hidden;flex-shrink:0}
.login-editorial .login-brand-wordmark>img{display:block;width:100%;height:auto;max-width:none}
@media(max-width:760px){
 .login-editorial #login-form .btn.primary::before{transform:none;opacity:1;background:radial-gradient(ellipse at 50% 115%,#d5b88b28,transparent 72%)}
}

@media(max-width:760px){.login-editorial #login-form .btn.primary{height:80px;min-height:80px;padding-top:16px;padding-bottom:16px}}

/* Permission matrices follow their content instead of filling wide displays. */
.permission-group-card{width:max-content;max-width:100%;margin-right:auto}
.permission-group-card .tablewrap{max-width:100%;overflow-x:auto}
.permission-group-card .permission-table{width:auto;min-width:0;table-layout:auto}
.permission-group-card .permission-table th:first-child,.permission-group-card .permission-table td:first-child{min-width:260px;max-width:580px;white-space:normal;overflow-wrap:break-word}
.permission-group-card .permission-table th:not(:first-child),.permission-group-card .permission-table td:not(:first-child){width:104px;min-width:104px;padding-left:14px;padding-right:14px}
.permission-group-card .permission-footer{flex-wrap:wrap;gap:12px;padding:14px 18px}
@media(max-width:700px){.permission-group-card{width:100%}.permission-group-card .permission-table th:first-child,.permission-group-card .permission-table td:first-child{min-width:210px}.permission-group-card .permission-table th:not(:first-child),.permission-group-card .permission-table td:not(:first-child){width:88px;min-width:88px;padding-left:10px;padding-right:10px}}

.card.permission-selectors{width:880px;max-width:100%;grid-template-columns:minmax(0,1.8fr) minmax(160px,1fr);gap:16px;padding:13px 16px;margin:20px 0 10px;border-radius:10px;box-shadow:none;background:color-mix(in srgb,var(--surface) 85%,var(--bg))}
.card.permission-selectors>label{min-width:0;font-size:11px;gap:6px;font-weight:500}
.card.permission-selectors select{width:100%;min-width:0;height:38px;min-height:38px;padding:7px 10px;font-size:13px;font-weight:500;border-radius:7px}
.card.permission-selectors+.permission-group-nav{margin-top:0}
@media(max-width:600px){.card.permission-selectors{grid-template-columns:1fr;gap:10px;padding:12px}}

.permission-group-nav{display:flex;flex-wrap:wrap;gap:8px;padding:10px;background:color-mix(in srgb,var(--accent) 4%,var(--surface));border:1px solid var(--line);border-radius:12px;box-shadow:none}
.permission-group-nav button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 14px;background:var(--surface);border:1px solid var(--line);border-radius:8px;font-size:13px;font-weight:600;line-height:1.3;color:var(--ink);box-shadow:0 1px 2px color-mix(in srgb,var(--ink) 3%,transparent)}
.permission-group-nav button>.icon{width:17px;height:17px;color:var(--accent);opacity:.85;flex-shrink:0}
.permission-group-nav button:hover{border-color:color-mix(in srgb,var(--accent) 45%,var(--line));background:color-mix(in srgb,var(--accent) 5%,var(--surface))}
.permission-group-nav button.active{background:var(--accent);border-color:var(--accent);color:var(--on-accent,#fff);box-shadow:0 3px 9px color-mix(in srgb,var(--accent) 18%,transparent)}
.permission-group-nav button.active>.icon{color:inherit;opacity:1}
.permission-group-nav button.active::after{display:none}
.permission-group-nav .permission-group-count{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:22px;padding:0 5px;margin-left:1px;border-radius:5px;font-size:10px;font-weight:600;opacity:1;color:var(--muted);background:color-mix(in srgb,var(--ink) 5%,var(--surface))}
.permission-group-nav button.active .permission-group-count{background:#ffffff20;color:inherit}
.permission-group-card>.cardhead{background:linear-gradient(110deg,color-mix(in srgb,var(--accent) 8%,var(--surface)),var(--surface));padding:14px 18px}
.permission-group-card>.cardhead h2{padding-left:11px;border-left:3px solid var(--accent);font-size:16px;font-weight:600;line-height:1.4;color:var(--ink)}
@media(max-width:700px){.permission-group-nav{gap:6px;padding:8px}.permission-group-nav button{min-height:40px;padding:9px 10px;font-size:12px}}

.permission-context-row{display:grid;grid-template-columns:minmax(340px,.95fr) minmax(400px,1.05fr);gap:14px;align-items:stretch;margin:18px 0 14px}
.permission-context-row>.card.permission-selectors{width:auto;max-width:100%;margin:0;grid-template-columns:minmax(0,1.9fr) minmax(120px,1fr);align-content:center;gap:12px;padding:14px 16px}
.permission-context-row>.permission-role-panel{margin:0;padding:14px 16px;border-radius:10px;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:10px;min-width:0}
.permission-context-row .permission-role-panel .compact-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.permission-context-row .permission-role-panel select{flex:1;min-width:135px;max-width:240px;font-size:12px}
.permission-context-row .permission-role-panel strong{font-size:13px;line-height:1.4}
.permission-context-row .permission-role-panel small{font-size:11px;line-height:1.5;margin-top:3px}
.permission-context-row+.permission-group-nav{margin-top:0}
@media(max-width:1100px){.permission-context-row{grid-template-columns:1fr}.permission-context-row .permission-role-panel select{max-width:none}}
@media(max-width:600px){.permission-context-row>.card.permission-selectors{grid-template-columns:1fr}}

.permission-role-directory-tools{gap:14px;flex-wrap:wrap;align-items:flex-end}
.permission-role-directory-tools>label{min-width:190px;max-width:280px;flex:1;font-size:11px}
.permission-role-directory-tools select{height:36px;padding:7px 10px;font-size:13px}
.permission-role-directory .tablewrap{margin-top:16px}
.permission-role-directory td .icon{width:15px;height:15px;vertical-align:middle;color:var(--accent);margin-right:4px}

.permission-member-count{display:inline-flex;align-items:center;justify-content:center;min-width:29px;height:27px;padding:0 8px;border:1px solid color-mix(in srgb,var(--accent) 16%,var(--line));border-radius:7px;background:color-mix(in srgb,var(--accent) 7%,var(--surface));color:var(--accent);font-size:12px;font-weight:600;cursor:help}
.permission-member-count:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* Keep every permission group at the same compact width. */
.permission-group-card{width:650px;max-width:100%}
.permission-group-card .permission-table{width:100%;table-layout:fixed;min-width:0}
.permission-group-card .permission-table th:first-child,.permission-group-card .permission-table td:first-child{width:auto;min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere}
@media(max-width:700px){.permission-group-card{width:650px;max-width:100%}.permission-group-card .permission-table{min-width:510px}.permission-group-card .permission-table th:first-child,.permission-group-card .permission-table td:first-child{min-width:0}}

.permission-context-row>.card.permission-selectors{margin:0!important}

.permission-context-row>.card.permission-selectors{position:static;top:auto;z-index:auto;padding:14px 16px!important;box-shadow:none}

/* Clear two-column workspace: section navigation beside the permission matrix. */
.permission-workspace{display:grid;grid-template-columns:205px minmax(0,650px);gap:16px;align-items:start;width:100%;margin-top:16px}
.permission-workspace>.permission-group-nav{display:flex;flex-direction:column;flex-wrap:nowrap;gap:7px;margin:0;padding:9px;border-radius:11px;position:sticky;top:16px}
.permission-workspace>.permission-group-nav button{justify-content:flex-start;min-height:42px;width:100%;padding:10px 11px;text-align:left;font-size:12px;gap:9px;box-shadow:none}
.permission-workspace>.permission-group-nav .permission-group-count{margin-left:auto;flex-shrink:0}
.permission-workspace>.permission-group-card{margin:0;width:650px;max-width:100%;min-width:0}
.permission-workspace>.permission-group-nav button.active{box-shadow:0 3px 9px color-mix(in srgb,var(--accent) 16%,transparent)}
dialog:has(.permission-role-directory){width:min(800px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
.permission-role-directory table{min-width:620px;table-layout:auto}
.permission-role-directory td:last-child .compact-actions{flex-wrap:nowrap}
@media(max-width:1150px){.permission-workspace{grid-template-columns:minmax(0,650px)}.permission-workspace>.permission-group-nav{position:static;flex-direction:row;flex-wrap:wrap}.permission-workspace>.permission-group-nav button{width:auto;flex:0 0 auto}.permission-workspace>.permission-group-nav .permission-group-count{margin-left:2px}}

/* Match the selected navigation item and the matrix heading. */
.permission-workspace>.permission-group-card>.cardhead{height:44px;min-height:44px;margin:9px;padding:10px 11px;border:0;border-radius:8px;background:var(--accent);color:var(--on-accent,#fff);box-shadow:0 3px 9px color-mix(in srgb,var(--accent) 16%,transparent)}
.permission-workspace>.permission-group-card>.cardhead h2{display:flex;align-items:center;gap:9px;margin:0;padding:0;border:0;font-size:12px;font-weight:600;line-height:1.3;color:inherit}
.permission-workspace>.permission-group-card>.cardhead h2>.icon{width:17px;height:17px;flex-shrink:0;color:inherit}

.permission-workspace{grid-template-columns:225px minmax(0,650px)}
@media(max-width:1150px){.permission-workspace{grid-template-columns:minmax(0,650px)}}

.permission-role-editor-heading{width:891px;max-width:100%;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:start;gap:12px 18px}
.permission-role-editor-heading>label{min-width:0;margin:0;font-size:12px;line-height:1.4}
.permission-role-editor-heading input,.permission-role-editor-heading select{width:100%;min-width:0;height:40px;min-height:40px;padding:9px 11px;font-size:14px;font-weight:400;line-height:1.4;box-sizing:border-box}
.permission-role-editor-heading>.permission-role-editor-note{grid-column:1/-1;margin:0;padding-top:10px;border-top:1px solid var(--line);font-size:11px;line-height:1.6}
.permission-workspace>.permission-group-nav button{height:44px;min-height:44px}
@media(max-width:800px){.permission-role-editor-heading{grid-template-columns:1fr}}

.dash-task-scopes{display:flex;gap:6px;flex-wrap:wrap}
.dash-task-scopes button{border:1px solid var(--line);border-radius:7px;padding:6px 10px;font-size:11px;font-weight:500;color:var(--muted);background:var(--surface)}
.dash-task-scopes button.active{background:var(--accent);color:var(--on-accent,#fff);border-color:var(--accent)}
.dash-task-totals{display:flex;gap:28px;padding:3px 0}
.dash-task-totals strong{font-size:27px;line-height:1.2;letter-spacing:-.7px;color:var(--ink)}
.dash-task-totals strong.task-overdue{color:var(--danger,#b94f4b)}
.dash-task-totals small{display:block;font-size:10px;font-weight:400;letter-spacing:0;color:var(--muted);margin-top:4px}
.dash-task-list{display:grid;gap:0}
.dash-task-list>button{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--line);text-align:left;min-width:0}
.dash-task-list>button:last-child{border-bottom:0}
.dash-task-list>button>span{min-width:0}
.dash-task-list b{display:block;font-size:12px;font-weight:500;color:var(--ink);overflow-wrap:anywhere}
.dash-task-list small{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.dash-task-list time{font-size:10px;color:var(--muted);flex-shrink:0}
.dash-task-list time.task-overdue{color:var(--danger,#b94f4b)}

/* Independent width and height choices on a dense twelve-column dashboard. */
.dashboard-tools{grid-auto-rows:140px}
.dashboard-tools>.dashboard-tool{grid-row:span 2;min-height:0;height:auto;align-self:stretch}
.dashboard-tools>.dash-height-tall{grid-row:span 4}
.dashboard-tools .dash-size-three_quarter{grid-column:span 9}
.dashboard-tools .dashboard-tool>.dash-tool-heading{flex-shrink:0}
.dashboard-tools .dashboard-tool>.dash-tool-content{min-height:0;overflow:auto;overscroll-behavior:contain;flex:1}
.dashboard-tools .dash-size-three_quarter>.dash-tool-heading{padding-bottom:16px;border-bottom:1px solid var(--line)}
.dash-editor-row>[data-dashboard-size],.dash-editor-row>[data-dashboard-height]{height:36px;min-height:36px;padding:7px 9px;font-size:12px;flex-shrink:0}
.dash-editor-row>[data-dashboard-size]{width:125px}
.dash-editor-row>[data-dashboard-height]{width:110px}
.dash-editor-row>div{min-width:0}
.dash-editor-row strong,.dash-editor-row small{overflow-wrap:anywhere}
dialog:has(.dashboard-editor){width:min(820px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
@media(max-width:1200px){.dashboard-tools .dash-size-three_quarter{grid-column:1/-1}}
@media(max-width:700px){.dashboard-tools .dash-size-three_quarter{grid-column:1/-1}.dash-editor-row>[data-dashboard-size],.dash-editor-row>[data-dashboard-height]{width:calc(50% - 29px);flex:1}.dash-editor-row>.dash-drag-handle{flex-shrink:0}}

.dashboard-tools .dash-size-small .dash-tool-heading{height:auto;min-height:62px}

/* Purposeful empty state and a compact, readable upcoming-events list. */
.dashboard-tools .dash-upcoming_events>.dash-tool-content{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px}
.dash-events-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px}
.dash-upcoming_events .dash-events-period{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:500;line-height:1.4}
.dash-events-period .icon{width:14px;height:14px}
.dash-events-count{font-size:10px;color:var(--muted);background:var(--bg);border:1px solid var(--line);border-radius:5px;padding:4px 7px;white-space:nowrap}
.dash-upcoming_events .dash-events-list{max-height:none;min-height:0;overflow:auto}
.dash-upcoming_events .dash-events-list.is-empty{display:grid;place-items:center;border:1px dashed color-mix(in srgb,var(--dash-tone) 22%,var(--line));border-radius:10px;background:linear-gradient(130deg,color-mix(in srgb,var(--dash-tone) 4%,var(--surface)),var(--surface));padding:14px}
.dash-events-empty{display:flex;align-items:center;gap:12px;max-width:100%}
.dash-events-empty>span{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border:1px solid color-mix(in srgb,var(--dash-tone) 15%,var(--line));border-radius:10px;background:var(--surface);color:var(--dash-tone)}
.dash-events-empty>span .icon{width:19px;height:19px}
.dash-events-empty strong{display:block;font-size:12px;font-weight:500;color:var(--ink);line-height:1.5}
.dash-events-empty p{font-size:10px!important;line-height:1.6!important;color:var(--muted);margin:3px 0 0!important;padding:0!important}
.dash-upcoming_events .dash-event{padding:10px 0;gap:10px}
.dash-upcoming_events .dash-event strong{font-size:12px;line-height:1.45}
.dash-upcoming_events .dash-event small{font-size:10px;line-height:1.5}
.dash-upcoming_events .dash-event-date{flex-basis:38px;border-radius:7px;padding:5px 3px}
.dash-upcoming_events .dash-event-date b{font-size:17px}
.dash-upcoming_events .dash-event-date span{font-size:10px}
.dash-upcoming_events .linkbtn{margin:0;align-self:end;font-size:11px}
/* Live, permission-scoped dimensional pie chart. */
.dash-distribution{--dash-tone:#7988c1}
.dashboard-tools .dash-distribution>.dash-tool-content{gap:12px}
.distribution-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-shrink:0}
.distribution-total{min-width:0}
.distribution-total>small{display:block;font-size:10px;color:var(--muted);line-height:1.5;text-transform:capitalize}
.distribution-total>strong{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;font-size:28px;font-weight:600;letter-spacing:-1px;line-height:1.3;color:var(--ink);font-variant-numeric:tabular-nums;margin-top:3px}
.distribution-total strong>span{font-size:11px;font-weight:400;letter-spacing:0;color:var(--muted)}
.distribution-filters{display:grid;gap:6px;flex:0 1 160px;min-width:110px}
.distribution-filters select{width:100%;height:30px;min-height:30px;font-size:11px;padding:5px 9px;border-radius:7px;background:var(--surface);color:var(--ink)}
.distribution-visual{display:grid;place-items:center;flex-shrink:0;min-height:210px;border-radius:16px;background:radial-gradient(ellipse at 50% 75%,color-mix(in srgb,var(--dash-tone) 8%,transparent),transparent 64%);isolation:isolate}
.distribution-pie{display:block;width:100%;max-width:420px;height:230px;overflow:visible;animation:distribution-arrive .65s cubic-bezier(.2,.7,.2,1) both}
.distribution-slice{transition:transform .2s ease,filter .2s ease;transform-origin:center;outline:none}
.distribution-slice:hover,.distribution-slice:focus-visible{transform:translateY(-4px);filter:brightness(1.08) drop-shadow(0 5px 5px #17233b20)}
.distribution-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 15px;list-style:none;padding:0;margin:0}
.distribution-legend li{display:flex;align-items:center;gap:7px;min-width:0;padding:5px 0}
.distribution-legend i{width:8px;height:8px;border-radius:3px;flex-shrink:0;box-shadow:inset 0 -2px 0 #00000016}
.distribution-legend li>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--ink)}
.distribution-legend strong{margin-left:auto;text-align:right;font-size:11px;font-weight:500;white-space:nowrap;color:var(--ink)}
.distribution-legend strong small{display:block;font-size:9px;font-weight:400;color:var(--muted);margin-top:2px}
.distribution-caption{display:flex;align-items:flex-start;gap:6px;font-size:10px;line-height:1.5;color:var(--muted);margin-top:8px;flex-shrink:0}
.distribution-no-data{display:grid;place-items:center;text-align:center;gap:8px;padding:22px 10px;color:var(--muted)}
.distribution-no-data>span{font-size:54px;color:var(--dash-tone);opacity:.35;line-height:1}
.distribution-no-data>strong{font-size:12px;font-weight:500;color:var(--ink)}
.distribution-no-data>p{font-size:10px;line-height:1.5;margin:0}
@keyframes distribution-arrive{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.distribution-controls{gap:10px}.distribution-total>strong{font-size:24px}.distribution-filters{flex-basis:135px}.distribution-pie{height:205px}.distribution-visual{min-height:190px}.distribution-legend{gap:6px 10px}.dash-size-small .distribution-controls{flex-direction:column;align-items:stretch}.dash-size-small .distribution-filters{flex-basis:auto}}
@media(prefers-reduced-motion:reduce){.distribution-pie{animation:none}.distribution-slice{transition:none}}

.dashboard-tools .dash-distribution>.dash-tool-content{padding:14px 20px 16px;gap:10px}
.distribution-pie{height:220px}
.distribution-legend li{padding:3px 0}
.distribution-legend strong small{display:inline;margin-left:5px}

.distribution-pie{height:auto;aspect-ratio:420/310;max-height:300px;max-width:460px}
.distribution-visual{min-height:0}

/* Approval counts stay together in one row, including quarter-width cards. */
.dashboard-tools .dash-queue-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;container-type:inline-size}
.dashboard-tools .dash-queue-chips button{min-width:0;padding:6px 1px;font-size:clamp(9px,4cqi,12px);white-space:nowrap;text-align:center}
.dashboard-tools .dash-queue-chips b{margin-left:3px}

.distribution-visual:has(.distribution-timeline){display:flex;flex-direction:column;justify-content:center;background:radial-gradient(ellipse at 50% 95%,#687b9c0c,transparent 65%)}
.distribution-timeline{width:100%;max-height:320px;overflow:visible}
.distribution-timeline text{font:11px Manrope,sans-serif;fill:var(--muted)}
.distribution-axis-line{fill:none;stroke:var(--line);stroke-width:1}
.distribution-timeline-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:11px;color:var(--muted);padding:6px 0 12px 7%}
.distribution-timeline-legend span{display:flex;align-items:center;gap:6px}
.distribution-timeline-legend i{width:15px;height:4px;border-radius:4px}
.distribution-timeline-foot{text-align:center;font-size:10px;color:var(--muted);padding:8px 0}
.distribution-column:hover,.distribution-column:focus{filter:brightness(1.1);outline:none}

.dashboard-point-popup{position:fixed;z-index:2000;width:300px;max-width:calc(100vw - 16px);max-height:260px;overflow:auto;padding:14px 16px;background:var(--card);color:var(--text);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 40px #17233b30;font-size:12px}
.dashboard-point-popup header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.dashboard-point-popup header button{border:0;background:var(--bg);color:var(--muted);font-size:20px;border-radius:6px;width:26px;height:26px;cursor:pointer}
.dashboard-point-popup section{padding:8px 0;border-top:1px solid var(--line)}
.dashboard-point-popup p{margin:5px 0;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.dashboard-point-popup .dashboard-point-special{color:var(--text)}
.distribution-timeline [data-dashboard-visitor-point]{cursor:pointer}
.distribution-timeline [data-dashboard-visitor-point]:focus{outline:none;filter:brightness(1.15);stroke:var(--text);stroke-width:2}

.distribution-visual:has(.distribution-years){justify-content:flex-start}
.distribution-years{max-height:260px;flex-shrink:0}
.distribution-year-values{max-height:120px;overflow:auto;font-size:11px;padding:0 5px}
.distribution-year-values>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:7px 3px;border-bottom:1px solid var(--line)}
.distribution-year-values span{display:flex;align-items:center;gap:7px;color:var(--text)}
.distribution-year-values i{display:block;width:7px;height:7px;border-radius:3px;flex-shrink:0}
.distribution-year-values strong{font-variant-numeric:tabular-nums;color:var(--text)}
.distribution-year-values small{font-size:9px;color:var(--muted)}

.distribution-year-legend{padding:6px 4px 12px;gap:9px 15px;max-height:84px;overflow:auto;flex-shrink:0}
.distribution-year-details{font-size:11px;color:var(--muted);padding:4px;flex-shrink:0}
.distribution-year-details summary{cursor:pointer;color:var(--text);font-weight:600;padding:6px 0}
.distribution-year-table{overflow:auto;max-height:170px;border:1px solid var(--line);border-radius:8px;margin-top:6px}
.distribution-year-table table{width:max-content;min-width:100%;border-collapse:collapse;font-size:10px}
.distribution-year-table th,.distribution-year-table td{padding:7px 9px;white-space:nowrap;border-bottom:1px solid var(--line);text-align:right}
.distribution-year-table th:first-child{position:sticky;left:0;background:var(--card);text-align:left}
.distribution-year-table i{display:inline-block;width:6px;height:6px;border-radius:2px;margin-right:5px}

.distribution-timeline-foot{width:100%;align-self:stretch;text-align:center;box-sizing:border-box;margin-inline:auto;padding:8px 0 8px 5%}

.distribution-caption-icon{flex-shrink:0;font-size:12px;line-height:1.25;color:var(--muted)}

/* Page scrolling wins until the user explicitly enters an overflowing card. */
.dashboard-tools [data-dashboard-scroll-area]{overflow-y:hidden!important;overscroll-behavior-y:auto!important}
.dashboard-tools [data-dashboard-inner-scroll] [data-dashboard-scroll-area]{overflow-y:auto!important}

.dashboard-tools .dash-leave_calendar>.dash-tool-content{padding:10px 14px 11px;gap:8px}
.dash-leave_calendar .dash-calendar-month{margin-bottom:0;min-height:24px}
.dash-leave_calendar .dash-calendar-month .btn{min-height:24px;height:24px;width:26px;padding:0;justify-content:center}
.dash-leave_calendar .dash-calendar-grid{gap:2px;margin-bottom:0;flex-shrink:0}
.dash-leave_calendar .dash-calendar-grid>small{font-size:9px;padding:1px 0;line-height:12px}
.dash-leave_calendar .dash-calendar-day{min-height:0;height:21px;padding:1px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border-radius:5px;font:inherit;line-height:1;background:transparent}
.dash-leave_calendar .dash-calendar-day>b{font-size:10px;line-height:11px;font-weight:500;color:var(--text)}
.dash-leave_calendar button.dash-calendar-day{cursor:pointer;background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 20%,var(--line))}
.dash-leave_calendar button.dash-calendar-day:hover{border-color:var(--accent)}
.dash-calendar-mark{display:block;width:3px;height:3px;border-radius:50%;background:var(--accent);flex-shrink:0}
.dash-leave_calendar .dash-calendar-day.is-today{border-color:var(--accent);background:var(--accent-soft)}
.dash-leave_calendar .linkbtn{margin-top:0;font-size:10px;line-height:15px}
.dashboard-calendar-popup ul{list-style:none;padding:0;margin:8px 0 0}
.dashboard-calendar-popup li{padding:7px 0;border-top:1px solid var(--line)}
.dashboard-calendar-popup li button{padding:0;border:0;background:none;color:var(--accent);font:inherit;cursor:pointer;text-align:left}

/* Mobile has an action-first home; desktop dashboard preferences remain independent. */
.sidebar-mobile-close,.mobile-nav-backdrop{display:none}
.mobile-overview{display:grid;gap:16px;min-width:0}
.mobile-section{min-width:0;border-radius:18px;border:1px solid var(--line);background:var(--card);overflow:hidden}
.mobile-section>summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;padding:16px;font-size:14px;font-weight:700;color:var(--text);user-select:none}
.mobile-section>summary::-webkit-details-marker{display:none}
.mobile-section>summary>span{display:flex;align-items:center;gap:9px;min-width:0;flex:1}
.mobile-section>summary .icon{width:18px;height:18px;flex-shrink:0}
.mobile-section>summary>.icon{width:15px;height:15px;opacity:.65;transition:transform .2s}
.mobile-section:not([open])>summary>.icon{transform:rotate(-90deg)}
.mobile-section-count{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:8px;font-size:11px;font-weight:700;background:var(--accent-soft);color:var(--accent)}
.mobile-approval-panel{border-color:#294754;background:radial-gradient(ellipse at 0 0,#26566866,transparent 65%),linear-gradient(140deg,#102e37,#182338);box-shadow:0 8px 22px #0e263017}
.mobile-approval-panel>summary{color:#f1f8fa;padding-bottom:14px}
.mobile-approval-panel>summary .mobile-section-count{background:#ffffff18;color:#a5e8de}
.mobile-approval-grid{display:grid;grid-template-columns:repeat(var(--approval-columns),minmax(0,1fr));gap:8px;padding:0 12px 14px}
.mobile-approval-tile{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0;min-height:158px;padding:13px 10px 10px;border-radius:12px;border:1px solid color-mix(in srgb,var(--queue-tone) 32%,transparent);background:linear-gradient(165deg,color-mix(in srgb,var(--queue-tone) 16%,#19323d),#142833);color:#f0f7fa;text-align:left;cursor:pointer;box-shadow:inset 0 1px 0 #ffffff0d;font:inherit}
.mobile-approval-tile:active{transform:translateY(1px);background:color-mix(in srgb,var(--queue-tone) 23%,#142833)}
.mobile-approval-icon{display:flex;align-items:center;color:var(--queue-tone)}
.mobile-approval-icon .icon{width:20px;height:20px}
.mobile-approval-label{font-size:12px;font-weight:600;line-height:1.3;white-space:normal}
.mobile-approval-tile>strong{font-size:32px;line-height:1.1;font-weight:700;letter-spacing:-1px;color:var(--queue-tone);font-variant-numeric:tabular-nums;text-shadow:0 2px 14px color-mix(in srgb,var(--queue-tone) 22%,transparent)}
.mobile-approval-tile>small{font-size:10px;color:#b3c7d2;line-height:1.4}
.mobile-approval-open{display:flex;justify-content:space-between;gap:8px;width:100%;border-top:1px solid #ffffff16;padding-top:9px;margin-top:auto;font-size:11px;color:#d7e8ed}
.mobile-shortcut-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:0 12px 14px}
.mobile-shortcut{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-height:117px;min-width:0;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--surface,var(--card));color:var(--text);font:inherit;text-align:left;cursor:pointer}
.mobile-shortcut:active{background:var(--accent-soft)}
.mobile-tone-blue{--shortcut-tone:#447edc}.mobile-tone-green{--shortcut-tone:#268d78}.mobile-tone-purple{--shortcut-tone:#8b66be}.mobile-tone-amber{--shortcut-tone:#b18136}.mobile-tone-cyan{--shortcut-tone:#258aa4}
.mobile-shortcut-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:color-mix(in srgb,var(--shortcut-tone) 12%,transparent);color:var(--shortcut-tone)}
.mobile-shortcut-icon .icon{width:18px;height:18px}
.mobile-shortcut-label{display:flex;flex-direction:column;gap:5px;min-width:0}
.mobile-shortcut-label strong{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.mobile-shortcut-label small{font-size:11px;color:var(--muted);line-height:1.4}
.mobile-shortcut-badge{position:absolute;right:11px;top:12px;font-size:11px;min-width:22px;height:22px;padding:3px 6px;border-radius:7px;background:var(--accent-soft);color:var(--accent)}
.mobile-task-preview{padding:0 14px}
.mobile-task-preview>button{display:flex;align-items:center;gap:10px;min-height:64px;width:100%;padding:12px 0;border:0;border-top:1px solid var(--line);font:inherit;background:none;color:var(--text);text-align:left;cursor:pointer}
.mobile-task-preview>button>span:nth-child(2){display:grid;gap:5px;flex:1;min-width:0}
.mobile-task-preview strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.mobile-task-preview small{font-size:11px;color:var(--muted)}
.mobile-task-preview>button>span:last-child{font-size:13px;color:var(--muted)}
.mobile-task-dot{width:7px;height:7px;border-radius:50%;background:var(--accent);flex-shrink:0}.mobile-task-dot.is-late{background:#d36765}
.mobile-section-link{display:block;min-height:44px;padding:12px 16px;border:0;background:none;color:var(--accent);font:inherit;font-size:11px;font-weight:600;cursor:pointer}
.mobile-chart-body{padding:0 14px 18px;display:flex;flex-direction:column;gap:12px;min-width:0}
.mobile-chart-body .distribution-controls{gap:10px}.mobile-chart-body .distribution-filters{flex-basis:165px}.mobile-chart-body .distribution-pie{max-height:260px}
.mobile-chart-body .distribution-year-values{max-height:none;overflow:visible}
.mobile-no-tools{padding:22px 16px;border:1px solid var(--line);border-radius:16px;color:var(--muted);font-size:12px;text-align:center}
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 body.mobile-menu-open{overflow:hidden}
 .shell .sidebar{position:fixed!important;z-index:1001!important;left:0!important;top:0!important;bottom:0!important;width:min(300px,86vw)!important;height:100dvh!important;max-height:100dvh;transform:translateX(-108%)!important;transition:transform .22s ease;border-radius:0!important;overflow-y:auto;overscroll-behavior:contain;padding-top:max(24px,env(safe-area-inset-top))!important;padding-bottom:max(18px,env(safe-area-inset-bottom))!important;box-shadow:12px 0 40px #06172335;touch-action:pan-y}
 .shell .sidebar.open{transform:translateX(0)!important}
 .sidebar .design-rail{display:none!important}
 .sidebar-mobile-close{position:absolute;top:max(8px,env(safe-area-inset-top));right:8px;z-index:2;display:grid;place-items:center;width:38px;height:38px;border:1px solid #ffffff28;border-radius:10px;background:#ffffff0c;color:var(--nav-ink,#fff);font:inherit;font-size:26px;line-height:1;cursor:pointer}
 .sidebar .brand{max-width:calc(100% - 35px)}
 .mobile-nav-backdrop{display:block;position:fixed;inset:0;z-index:1000;background:#07152180;backdrop-filter:blur(3px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s,visibility .2s}
 body.mobile-menu-open .mobile-nav-backdrop{opacity:1;visibility:visible;pointer-events:auto}
 .main{min-width:0;width:100%;max-width:100%;padding-left:0!important}
 .topbar{height:60px!important;padding:0 12px!important;gap:10px;min-width:0}
 .mobile-toggle{display:grid!important;place-items:center;min-width:38px;width:38px;min-height:38px;height:38px;padding:0;border-radius:11px;flex-shrink:0}
 .topbar .breadcrumb{display:block;flex:1;min-width:0;font-size:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 .topbar .breadcrumb>span{display:none}.topbar .breadcrumb strong{font-size:12px;line-height:1.4}
 .topbar .top-right{gap:8px;margin-left:auto;min-width:0}
 .topbar .viewer-greeting,.topbar .topdate,.topbar .notice-badge,.topbar .search,.topbar .appearance-label{display:none!important}
 .topbar .appearance-trigger{width:34px;height:34px;min-height:34px;padding:0;justify-content:center;border-radius:10px}
 .topbar .notification-menu>summary{display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:0}
 .topbar .notification-dropdown{position:fixed;right:10px;top:64px;left:auto;width:min(310px,calc(100vw - 20px));max-width:calc(100vw - 20px)}
 .content{padding:20px 12px 28px!important;min-width:0;max-width:100%;overflow-wrap:anywhere}
 .pagehead{margin-bottom:18px;gap:12px;align-items:flex-start}
 .pagehead h1{font-size:22px!important;line-height:1.25;letter-spacing:-.5px}.pagehead p{font-size:12px;line-height:1.6;margin-top:7px}
 .pagehead h1 .icon{width:24px;height:24px}
 .mobile-overview-head{margin-bottom:18px}.mobile-overview-head h1{font-size:23px!important}
 .head-actions{max-width:100%;gap:8px;flex-wrap:wrap;width:100%}
 .head-actions>.btn,.head-actions>select,.head-actions>details{flex:1;min-width:0}
 .head-actions .btn,.head-actions select{min-height:40px;font-size:11px;padding:9px 10px}
 .request-toolbar{padding:12px;gap:12px;border-radius:16px}
 .request-toolbar .leave-hub-nav{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;gap:6px;overscroll-behavior-x:contain}
 .request-toolbar .leave-hub-nav>button{flex-shrink:0;font-size:11px;min-height:40px;padding:9px 12px;white-space:nowrap}
 .request-toolbar-filters,.request-toolbar .request-toolbar-filters,.request-toolbar-filters label{min-width:0}
 .request-toolbar .request-toolbar-filters,.request-toolbar .request-toolbar-filters:has(label){display:grid;grid-template-columns:1fr;gap:10px}
 .request-toolbar .request-toolbar-filters input,.request-toolbar .request-toolbar-filters select{width:100%;max-width:100%;min-height:42px}
 .request-toolbar .request-toolbar-filters label{font-size:11px}
 .request-toolbar-filters{width:100%}
 .request-toolbar .request-toolbar-filters{flex:1}
 .request-toolbar .purchase-filters,.request-toolbar .expense-filters{display:grid;grid-template-columns:1fr;gap:10px;width:100%;padding:0}
 .purchase-approval-grid,.expense-approval-grid{grid-template-columns:1fr;gap:12px}
 .purchase-approval-card,.expense-approval-card{padding:16px;border-radius:16px}
 .purchase-approval-card h2,.expense-approval-card h2{font-size:17px;margin-top:14px}
 .purchase-decision-total,.expense-decision-total{padding:14px;margin:14px 0}
 .purchase-decision-total strong,.expense-decision-total strong{font-size:25px}
 .purchase-card-footer,.expense-card-footer{gap:10px;align-items:stretch}
 .purchase-card-footer>.btn,.expense-card-footer>.btn{width:100%;min-height:44px;justify-content:center}
 dialog{width:min(680px,calc(100vw - 20px))!important;max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 24px);border-radius:18px}
 .modalhead{padding:16px!important}.modalhead h2{font-size:18px!important;line-height:1.4}
 .modalhead>button{min-width:36px;min-height:36px}
 dialog .formbody{padding:16px!important}dialog .formbody .twocol{grid-template-columns:1fr}
 dialog .formfoot{padding:12px 16px!important;gap:8px;flex-wrap:wrap}dialog .formfoot>.btn{min-height:44px;flex:1;justify-content:center}
}
@media(max-width:350px){.mobile-approval-grid{gap:6px;padding-inline:9px}.mobile-approval-tile{padding:12px 8px 9px;min-height:150px}.mobile-approval-label{font-size:11px}.mobile-approval-tile>strong{font-size:29px}.mobile-shortcut{padding:11px}.mobile-chart-body .distribution-filters{flex-basis:145px}}
@media(prefers-reduced-motion:reduce){.mobile-section>summary>.icon,.mobile-nav-backdrop,.shell .sidebar{transition:none!important}}

.mobile-leave-queue{display:grid;gap:12px}
.mobile-leave-card{padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.mobile-leave-person{display:flex;align-items:center;gap:9px;min-width:0}
.mobile-leave-person .avatar{width:34px;height:34px;min-width:34px;font-size:11px}
.mobile-leave-person>div{display:grid;gap:4px;flex:1;min-width:0}
.mobile-leave-person strong{font-size:12px;overflow-wrap:anywhere}.mobile-leave-person small{font-size:10px;color:var(--muted)}
.mobile-queue-status{font-size:9px;white-space:nowrap;padding:5px 7px;border-radius:6px;background:var(--accent-soft);color:var(--accent)}
.mobile-leave-card h2{font-size:16px;margin:16px 0 7px}.mobile-leave-card>p{font-size:11px;color:var(--muted);line-height:1.5;margin:0 0 14px}
.mobile-leave-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:12px}
.mobile-leave-card-footer>strong{font-size:13px}.mobile-leave-card-footer>.btn{min-height:42px;padding:10px 12px;font-size:11px}
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 .leave-navigation-panel{padding:12px;border-radius:16px;margin-bottom:14px}
 .leave-navigation-heading{gap:8px;flex-wrap:wrap}.leave-navigation-heading h2{font-size:16px}
 .leave-navigation-heading .employee-heading-scope{font-size:11px;padding-left:8px}
 .leave-header-filters{width:100%;margin-left:0;gap:8px;display:flex;flex-wrap:wrap}
 .leave-header-filters>label{flex:1;min-width:120px}.leave-header-filters select,.leave-header-filters input{width:100%;min-height:40px;font-size:12px}
 .leave-navigation-panel .leave-hub-nav{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;max-width:100%;margin-top:12px}
 .leave-navigation-panel .leave-hub-nav>button{flex-shrink:0;font-size:11px;min-height:40px;padding:9px 11px;white-space:nowrap}
 .leave-navigation-panel .leave-hub-nav>button .icon{width:15px;height:15px}
}

@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 .pagehead>.head-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
 .pagehead>.head-actions>.btn.primary{grid-column:1/-1}
 .pagehead>.head-actions>.report-export-menu{width:100%;min-width:0}
 .pagehead>.head-actions .btn{width:100%;max-width:100%;box-sizing:border-box;white-space:normal;justify-content:center;text-align:center}
 .pagehead>.head-actions>.report-export-menu>summary{width:100%;max-width:100%;white-space:normal;justify-content:center}
 .sidebar-mobile-close{width:40px;height:40px}.modalhead>button{min-width:42px;min-height:42px}
}
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){html.mobile-menu-open{overflow:hidden}.shell .sidebar{overflow-y:auto;overscroll-behavior-y:contain;touch-action:pan-y}}
.mobile-back-home{display:inline-flex;align-items:center;min-height:32px;margin:0 0 8px;padding:0 4px;border:0;background:none;color:var(--accent);font:inherit;font-size:11px;font-weight:600;cursor:pointer}
@media print{.mobile-back-home{display:none!important}}

.mobile-overview{width:100%;max-width:680px;margin-inline:auto}

/* The mobile sections share the approval panel's dark, high-contrast treatment. */
.mobile-overview>.mobile-section{
 --card:#17313e;--surface:#1b3543;--bg:#132b37;--text:#eff7fa;--ink:#eff7fa;--muted:#b2c8d2;--line:#ffffff19;--accent:#7ed8cb;--accent-soft:#7ed8cb18;--dash-tone:#7ed8cb;
 color-scheme:dark;color:var(--text);border-color:#294754;background:radial-gradient(ellipse at 0 0,#26566866,transparent 65%),linear-gradient(140deg,#102e37,#182338);box-shadow:0 8px 22px #0e263017;
}
.mobile-overview>.mobile-section>summary{color:#f1f8fa}
.mobile-overview>.mobile-section>summary>span>.icon{color:#acd9df}
.mobile-shortcuts .mobile-shortcut{border-color:color-mix(in srgb,var(--shortcut-tone) 30%,#ffffff0a);background:linear-gradient(165deg,color-mix(in srgb,var(--shortcut-tone) 13%,#19323d),#142833);color:#eff7fa;box-shadow:inset 0 1px 0 #ffffff0b}
.mobile-shortcuts .mobile-shortcut:active{background:color-mix(in srgb,var(--shortcut-tone) 24%,#142833)}
.mobile-shortcuts .mobile-tone-blue{--shortcut-tone:#7bb2ff}.mobile-shortcuts .mobile-tone-green{--shortcut-tone:#5de0ca}.mobile-shortcuts .mobile-tone-purple{--shortcut-tone:#c4a3f3}.mobile-shortcuts .mobile-tone-amber{--shortcut-tone:#ffd17c}.mobile-shortcuts .mobile-tone-cyan{--shortcut-tone:#78d5ed}
.mobile-shortcuts .mobile-shortcut-icon{background:color-mix(in srgb,var(--shortcut-tone) 13%,transparent);color:var(--shortcut-tone)}
.mobile-shortcuts .mobile-shortcut-label strong{color:#f0f7fa}.mobile-shortcuts .mobile-shortcut-label small{color:#b3c7d2}
.mobile-shortcuts .mobile-shortcut-badge{background:color-mix(in srgb,var(--shortcut-tone) 16%,transparent);color:var(--shortcut-tone)}
.mobile-task-section .mobile-task-preview{display:grid;gap:8px;padding:0 12px}
.mobile-task-section .mobile-task-preview>button{padding:12px;border:1px solid var(--line);border-radius:11px;background:linear-gradient(135deg,#ffffff08,#ffffff03);color:#eff7fa}
.mobile-task-section .mobile-task-preview>button:active{background:#ffffff0d}
.mobile-task-section .mobile-task-preview strong{color:#f0f7fa}.mobile-task-section .mobile-task-preview small,.mobile-task-section .mobile-task-preview>button>span:last-child{color:#b3c7d2}
.mobile-task-section .mobile-task-dot{background:#5de0ca}.mobile-task-section .mobile-task-dot.is-late{background:#f29b95}
.mobile-task-section .mobile-section-link{color:#8ce1d4}
.mobile-chart-section .distribution-filters select{background:#1b3543;color:#eff7fa;border-color:#ffffff28}
.mobile-chart-section .distribution-total strong,.mobile-chart-section .distribution-legend strong{color:#eff7fa}
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 .topbar .mobile-toggle{width:44px;min-width:44px;height:44px;min-height:44px;padding:0}
 .topbar .mobile-toggle>.icon{width:27px;height:27px;stroke-width:2}
}

/* Mobile navigation belongs to the same visual family as the workspace cards. */
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 .shell .topbar,.shell .sidebar{--nav-ink:#eff7fa;--nav-muted:#a8c3cd;--nav-line:#ffffff16;--nav-active:#7ed8cb15;--nav-selected:#fff;--accent:#7ed8cb;color:#eff7fa;background:radial-gradient(ellipse at 0 0,#26566866,transparent 75%),linear-gradient(140deg,#102e37,#182338);border-color:#ffffff16;color-scheme:dark}
 .shell .topbar{box-shadow:0 3px 16px #0e263024}
 .topbar .breadcrumb strong{color:#eff7fa;font-size:13px;font-weight:600}
 .topbar .mobile-toggle,.topbar .appearance-trigger,.topbar .notification-menu>summary{color:#c6e5eb;background:#ffffff08;border:1px solid #ffffff19;border-radius:12px}
 .topbar .mobile-toggle:active,.topbar .appearance-trigger:active{background:#7ed8cb20}
 .shell .sidebar{padding-inline:14px!important;border-right:1px solid #45616a!important}
 .sidebar .brand{padding:14px 8px 20px;margin:0 0 14px;border-bottom:1px solid #ffffff14}
 .shell .sidebar .brand-wordmark{filter:none!important;opacity:1;background:url("/brand-wordmark-white.png") center/contain no-repeat;background-size:contain!important;background-position:center!important;width:192px;height:20px;mix-blend-mode:normal}
 .sidebar .workspace-switch{background:#ffffff05;border-color:#ffffff16;border-radius:13px;padding:13px 12px;margin-bottom:14px}
 .sidebar .navlabel{color:#8eb2be;letter-spacing:1.1px;font-size:10px;padding:18px 12px 9px;font-weight:600}
 .sidebar .navitem{min-height:46px;padding:12px;border:1px solid transparent;border-radius:12px;margin:3px 0;font-size:13px;color:#d9e7ed;gap:12px}
 .sidebar .navitem svg{width:20px;height:20px;color:#9fc9d3;opacity:1}
 .sidebar .navitem:hover{background:#ffffff08;color:#fff}
 .sidebar .navitem.active{color:#fff;border-color:#7ed8cb38;background:linear-gradient(110deg,#7ed8cb24,#7ed8cb09);box-shadow:inset 3px 0 #7ed8cb}
 .sidebar .navitem.active svg{color:#8ce1d4}
 .sidebar .profile{border-color:#ffffff16;color:#eff7fa}
 .sidebar-mobile-close{color:#c6e5eb;background:#ffffff08;border-color:#ffffff20;border-radius:12px}
 .sidebar :is(button,a,summary):focus-visible,.topbar :is(button,summary):focus-visible{outline:2px solid #8ce1d4;outline-offset:2px}
}

/* Clean mobile workflows: a branded heading, quiet surfaces and clear actions. */
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 .mobile-workspace-page{--accent:#217c76;--accent-soft:#e6f3f0;--on-accent:#fff}
 .mobile-workspace-page>.pagehead,.mobile-workspace-page>.leave-workspace>.pagehead{padding:18px 16px;border:1px solid #294754;border-radius:16px;background:radial-gradient(ellipse at 0 0,#26566866,transparent 75%),linear-gradient(140deg,#102e37,#182338);color:#eff7fa;box-shadow:0 6px 18px #0e263012}
 .mobile-workspace-page .pagehead h1{color:#eff7fa;font-size:21px!important;letter-spacing:-.4px}
 .mobile-workspace-page .pagehead h1 .icon{color:#8ce1d4}
 .mobile-workspace-page .pagehead p{color:#b4ccd4;font-size:12px}
 .mobile-workspace-page .pagehead .btn:not(.primary){background:#ffffff0b;border-color:#ffffff28;color:#eff7fa}
 .mobile-workspace-page .pagehead .btn.primary{background:#89ded0;color:#123e3a;border-color:transparent}
 .mobile-workspace-page .pagehead>.actions{display:flex;flex-wrap:wrap;gap:8px;width:100%}
 .mobile-workspace-page .pagehead>.actions>.btn{flex:1;min-height:42px}
 .mobile-workspace-page :is(.request-toolbar,.leave-navigation-panel,.task-toolbar,.rm-toolbar){background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px;gap:12px}
 .mobile-workspace-page :is(.leave-hub-nav,.settings-page-tabs){display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;max-width:100%;scrollbar-width:none}
 .mobile-workspace-page :is(.leave-hub-nav,.settings-page-tabs)>button{flex-shrink:0;min-height:42px;padding:10px 12px;border-radius:10px;font-size:12px;white-space:nowrap}
 .mobile-workspace-page :is(.leave-hub-nav,.settings-page-tabs)>button.active{background:#173a43;color:#eff7fa;border-color:#173a43;box-shadow:none}
 .mobile-workspace-page .task-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .mobile-workspace-page .task-summary button{display:flex;flex-direction:column;justify-content:center;gap:5px;min-height:76px;padding:10px 5px;border-radius:13px;font-size:11px}
 .mobile-workspace-page .task-summary strong{font-size:24px}
 .mobile-workspace-page .task-toolbar{align-items:stretch}.mobile-workspace-page .task-toolbar>nav,.mobile-workspace-page .task-toolbar>select{width:100%}
 .mobile-workspace-page .rm-toolbar{display:grid;margin-bottom:14px}.mobile-workspace-page .rm-filters{display:flex;flex-wrap:wrap;gap:8px}.mobile-workspace-page .rm-filters>:is(input,select){flex:1;min-width:130px;min-height:42px}
 .mobile-workspace-page :is(.purchase-approval-card,.expense-approval-card,.mobile-leave-card){border-radius:16px;box-shadow:0 4px 14px #102e3707;border-color:var(--line)}
 .mobile-workspace-page :is(.purchase-decision-total,.expense-decision-total){border-radius:12px;background:var(--accent-soft);padding:14px}
 .mobile-workspace-page :is(.panelhead,.cardhead){padding:14px 16px;gap:8px;flex-wrap:wrap}
 .mobile-workspace-page :is(.panelhead,.cardhead) h2{font-size:16px}
 .mobile-workspace-page .tablewrap:has(>.mobile-records){overflow:visible;padding:10px;background:transparent}
 .mobile-workspace-page .mobile-records{display:block;width:100%;min-width:0!important;table-layout:auto}
 .mobile-workspace-page .mobile-records>thead{display:none}
 .mobile-workspace-page .mobile-records>tbody{display:grid;gap:10px}
 .mobile-workspace-page .mobile-record{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--surface);gap:12px}
 .mobile-workspace-page .mobile-record>td{display:block;padding:0!important;border:0!important;min-width:0;font-size:12px;overflow-wrap:anywhere;white-space:normal!important}
 .mobile-workspace-page .mobile-record>td::before{content:attr(data-mobile-label);display:block;font-size:9px;letter-spacing:.4px;font-weight:600;color:var(--muted);margin-bottom:5px}
 .mobile-workspace-page .mobile-record>td:first-child{grid-column:1/-1;padding-bottom:10px!important;border-bottom:1px solid var(--line)!important;font-size:14px;font-weight:600}
 .mobile-workspace-page .mobile-record>td:first-child::before{display:none}
 .mobile-workspace-page .mobile-record>td:last-child{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
 .mobile-workspace-page .mobile-record>td:last-child::before{display:none}
 .mobile-workspace-page .mobile-record :is(button,.btn){min-height:40px}
 .mobile-workspace-page .mobile-record .linkbtn{text-align:left;white-space:normal;font-size:14px;line-height:1.5}
 dialog{--accent:#217c76;--accent-soft:#e6f3f0;--on-accent:#fff;box-shadow:0 24px 80px #071c4055}
 dialog::backdrop{background:#07152199;backdrop-filter:blur(4px)}
 dialog .modalhead{background:radial-gradient(ellipse at 0 0,#26566866,transparent 75%),linear-gradient(140deg,#102e37,#182338)!important;border-bottom:1px solid #ffffff16;color:#eff7fa;min-height:68px;align-items:center}
 dialog .modalhead h2{color:#eff7fa!important;font-size:18px!important;font-weight:600}
 dialog .modalhead>button{color:#c6e5eb;border:1px solid #ffffff25;background:#ffffff08;border-radius:11px}
 dialog :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select){min-height:44px;max-width:100%;font-size:14px;border-radius:10px;padding:10px 12px}
 dialog textarea{max-width:100%;font-size:14px;line-height:1.6;border-radius:10px;padding:10px 12px}
 dialog label{font-size:12px;line-height:1.5;gap:7px}
 dialog .formbody{gap:16px}
 dialog .formbody :is(.twocol,.task-target-grid){grid-template-columns:1fr}
 dialog .formfoot{position:sticky;bottom:0;background:var(--surface);border-top:1px solid var(--line);z-index:3;padding-bottom:max(12px,env(safe-area-inset-bottom))!important}
 dialog .formfoot>.btn{min-height:44px;font-size:13px;border-radius:11px}
 dialog .formfoot>.btn.primary{background:#217c76;color:#fff}
 dialog :is(.purchase-detail-summary,.expense-detail-summary){border-radius:12px}
}
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 .mobile-workspace-page :is(.purchase-approval-card,.expense-approval-card,.mobile-leave-card){border-radius:16px;border:1px solid var(--line);border-top:3px solid #79c9bd;background:var(--surface);box-shadow:0 4px 14px #102e3707;padding:16px}
 .mobile-workspace-page :is(.purchase-approval-card,.expense-approval-card,.mobile-leave-card) h2{font-size:17px;line-height:1.45;letter-spacing:-.2px}
 .mobile-workspace-page :is(.purchase-decision-total,.expense-decision-total){background:#e9f4f1;border:1px solid #cfe6df;border-radius:12px;color:#174d46;padding:14px}
 .mobile-workspace-page :is(.purchase-card-footer,.expense-card-footer,.mobile-leave-card-footer)>.btn{background:#217c76;color:#fff;border:0;border-radius:10px;min-height:44px}
 dialog :is(.purchase-detail-top,.expense-detail-top){display:flex;flex-wrap:wrap;gap:10px;align-items:center}
 dialog :is(.purchase-detail-facts,.expense-detail-facts){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--bg) 65%,var(--surface))}
 dialog :is(.purchase-decision-box,.expense-decision-box){padding:14px;border:1px solid #79c9bd80;border-radius:13px;background:color-mix(in srgb,var(--accent) 5%,var(--surface));margin-top:16px}
 dialog :is(.purchase-decision-box,.expense-decision-box) .actions{display:flex;flex-wrap:wrap;gap:8px}
 dialog :is(.purchase-decision-box,.expense-decision-box) .actions>.btn{flex:1;min-height:44px;justify-content:center}
 dialog :is(.purchase-item-editor,.expense-item-editor){border:1px solid var(--line);border-radius:12px;padding:12px;gap:12px}
 .mobile-workspace-page .task-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .mobile-workspace-page .task-summary button{display:grid;justify-items:center;gap:5px;padding:12px 6px;min-width:0;font-size:11px;border-radius:13px}
 .mobile-workspace-page .task-summary button strong{font-size:23px}
 .mobile-workspace-page .rm-filters{display:flex;flex-wrap:wrap;gap:10px;min-width:0;width:100%}
 .mobile-workspace-page .rm-filters :is(input:not([type=checkbox]),select){flex:1;min-width:120px;max-width:100%;min-height:42px}
}
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 .pagehead .head-actions>[data-action="print-report"],.pagehead .head-actions>.report-export-menu{display:none!important}
 .pagehead>.head-actions{display:flex!important;flex-wrap:wrap;gap:8px}.pagehead>.head-actions>.btn.primary{flex:1;min-width:150px}
 .leave-pagehead{padding:16px!important;gap:12px!important}.leave-pagehead p{display:none}
 .leave-workspace .leave-summary-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px;margin-bottom:14px}
 .leave-workspace .leave-summary-card{padding:12px!important;min-height:0!important;height:auto;border-radius:13px;gap:6px}
 .leave-workspace .leave-summary-card>div{min-width:0;gap:5px}
 .leave-workspace .leave-summary-card span{font-size:10px!important;line-height:1.4}
 .leave-workspace .leave-summary-card strong{font-size:15px!important;line-height:1.4;white-space:nowrap;letter-spacing:-.3px}
 .leave-workspace .leave-summary-card small{font-size:9px!important;line-height:1.4;min-height:0}
 .leave-workspace .leave-summary-card>.icon{width:17px;height:17px;align-self:flex-start}
 .leave-workspace .leave-personal-grid{display:grid;grid-template-columns:1fr;gap:14px}
 .leave-personal-grid>.card{border-radius:14px;overflow:hidden}
 .leave-personal-grid>.card>.cardhead{min-height:52px!important;padding:12px!important;flex-wrap:nowrap!important;background:linear-gradient(140deg,#102e37,#182338);color:#eff7fa;border-color:#ffffff16}
 .leave-personal-grid>.card>.cardhead h2{font-size:14px!important;line-height:1.4;white-space:nowrap;color:#eff7fa}
 .leave-personal-grid>.card>.cardhead .pill{font-size:10px;background:#ffffff16;color:#a5e2d7;padding:2px 5px}
 .leave-personal-grid .leave-status-choice{font-size:0;gap:0;flex-shrink:0;margin-left:auto}
 .leave-personal-grid .leave-status-choice select{font-size:11px!important;min-height:32px!important;padding:6px!important;width:83px;background:#1b3543;color:#eff7fa;border-color:#ffffff25}
 .leave-personal-grid .cardfooter{padding:10px 12px;font-size:10px;gap:8px;flex-wrap:wrap}
 .leave-personal-grid .cardfooter .linkbtn{font-size:11px;min-height:32px}
 .mobile-leave-records{padding:0 12px}
 .mobile-leave-record{width:100%;display:grid;grid-template-columns:minmax(0,1fr) 96px 28px 7px;align-items:center;gap:7px;min-height:54px;padding:9px 0;border:0;border-bottom:1px solid var(--line);background:none;color:var(--ink);text-align:left;font:inherit;cursor:pointer}
 .mobile-leave-record:last-child{border-bottom:0}
 .mobile-leave-record>strong{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .mobile-leave-dates{font-size:10px;color:var(--muted);white-space:nowrap;letter-spacing:-.3px;text-align:center}
 .mobile-leave-record>b{font-size:13px;text-align:center}.mobile-leave-record>b>small{display:block;font-size:9px;font-weight:400;color:var(--muted)}
 .mobile-leave-state{width:7px;height:7px;border-radius:50%;background:#8d99a6}.mobile-leave-state.is-approved{background:#3d9b7a}.mobile-leave-state.is-pending{background:#e3ab44}.mobile-leave-state.is-rejected{background:#d36d72}
 .mobile-leave-record:active{background:var(--accent-soft)}
 .mobile-credit-records{padding:0 12px}.mobile-credit-records>div{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.mobile-credit-records>div:last-child{border:0}
 .mobile-credit-records>div>span{display:grid;gap:4px;min-width:0;flex:1}.mobile-credit-records strong{font-size:12px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}.mobile-credit-records small{font-size:10px;color:var(--muted)}.mobile-credit-records b{font-size:14px;color:var(--accent);white-space:nowrap}
 .leave-workspace .leave-navigation-panel{padding:10px!important;margin-bottom:12px}
 .leave-workspace .leave-navigation-heading h2{font-size:14px}.leave-workspace .leave-navigation-heading>.employee-heading-icon{width:30px;height:30px}
 .leave-workspace .leave-hub-nav{margin-top:10px;gap:5px}.leave-workspace .leave-hub-nav>button{min-height:38px;padding:8px 10px;font-size:11px}
 .leave-workspace .mobile-leave-card{padding:13px;border-top-width:2px}.leave-workspace .mobile-leave-card h2{font-size:15px;margin:12px 0 5px}.leave-workspace .mobile-leave-card>p{margin-bottom:10px}.leave-workspace .mobile-leave-card-footer{padding-top:10px}
}
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 .leave-workspace .leave-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
 .leave-workspace .leave-summary-card{padding:12px;min-height:88px!important;border:1px solid #ffffff16;border-radius:13px;background:linear-gradient(140deg,#173641,#1c293e);color:#eff7fa;box-shadow:none;gap:8px}
 .leave-workspace .leave-summary-card>div{min-width:0}.leave-workspace .leave-summary-card span{font-size:10px;color:#b4ccd4}.leave-workspace .leave-summary-card strong{font-size:15px!important;line-height:1.5;color:#eff7fa;white-space:nowrap;letter-spacing:-.4px}.leave-workspace .leave-summary-card small{font-size:9px;color:#a5c6cf;line-height:1.5}.leave-workspace .leave-summary-card>.icon{width:17px;height:17px;color:#86cfca;flex-shrink:0}
 .leave-workspace .leave-personal-grid{display:grid;grid-template-columns:1fr;gap:14px}
 .leave-workspace .leave-personal-grid>.card>.cardhead{min-height:56px;height:auto;padding:11px 12px;flex-wrap:nowrap;background:linear-gradient(120deg,#173641,#1c293e);color:#eff7fa;border-color:#ffffff16;gap:8px}
 .leave-workspace .leave-personal-grid>.card>.cardhead h2{font-size:14px;line-height:20px;white-space:nowrap;color:#eff7fa}
 .leave-workspace .leave-personal-grid>.card>.cardhead .pill{font-size:10px;padding:2px 5px;background:#ffffff15;color:#b6e3dc}
 .leave-workspace .leave-status-choice{font-size:0;display:block;flex-shrink:0}.leave-workspace .leave-status-choice select{width:96px;max-width:96px;font-size:11px;min-height:34px;padding:5px 7px;border:1px solid #ffffff25;background:#ffffff09;color:#eff7fa;color-scheme:dark}
 .leave-workspace .leave-personal-grid .cardfooter{padding:8px 12px;min-height:42px;font-size:10px;gap:8px;flex-wrap:wrap}
 .leave-workspace .calgrid{grid-template-columns:repeat(7,minmax(0,1fr))}
 .leave-workspace .calhead{font-size:10px;padding:10px 0;min-width:0}.leave-workspace .calday{min-height:66px!important;padding:5px 3px;min-width:0;overflow:hidden}.leave-workspace .daynum{font-size:11px}
 .mobile-calendar-mark{display:flex;gap:3px;align-items:center;justify-content:center;width:100%;padding:4px 1px;margin-top:5px;border:0;border-radius:6px;background:#217c7615;color:#217c76;font:inherit;font-size:10px;font-weight:700;cursor:pointer}.mobile-calendar-mark span{font-size:8px;font-weight:400}
 .mobile-day-people{display:grid;gap:0!important}.mobile-day-people>button,.mobile-day-people>div{display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:10px 0;border:0;border-bottom:1px solid var(--line);background:none;color:var(--ink);font:inherit;font-size:13px;text-align:left}.mobile-day-people>button>span{color:var(--accent)}
 .leave-workspace .cardhead:has(.monthcontrols){padding:12px;min-height:56px;background:linear-gradient(120deg,#173641,#1c293e);color:#eff7fa}.leave-workspace .cardhead:has(.monthcontrols) h2{font-size:15px;color:#eff7fa}.leave-workspace .monthcontrols{gap:6px}.leave-workspace .monthcontrols .btn{width:32px;min-height:32px;padding:5px;background:#ffffff0b;border-color:#ffffff22;color:#eff7fa}.leave-workspace .monthcontrols .linkbtn{color:#9de0d4;font-size:11px}
 dialog .leave-balance-grid{padding:12px;gap:8px;border-radius:12px}dialog .leave-balance-grid strong{font-size:20px}
 dialog .leave-approval-timeline{margin-top:8px}dialog .leave-approval-timeline h3{font-size:13px}
}
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 .mobile-workspace-page .leave-workspace .leave-navigation-panel{background:radial-gradient(ellipse at 0 0,#26566866,transparent 75%),linear-gradient(140deg,#102e37,#182338);border-color:#ffffff18;color:#eff7fa;box-shadow:0 4px 14px #102e3712}
 .leave-workspace .leave-navigation-heading h2{color:#eff7fa}.leave-workspace .employee-heading-scope{color:#aac6d1;border-color:#ffffff20}
 .leave-workspace .leave-navigation-heading>.employee-heading-icon{background:#7ed8cb15;color:#9de2d7}
 .leave-workspace .leave-hub-nav>button{background:#ffffff07;color:#c5d8e0;border:1px solid #ffffff22;box-shadow:none}
 .leave-workspace .leave-hub-nav>button .icon{color:#9bbecb}
 .leave-workspace .leave-hub-nav>button.active{background:#8dded0;color:#153d3b;border-color:#8dded0;box-shadow:0 2px 7px #061a2220}
 .leave-workspace .leave-hub-nav>button.active .icon{color:#1b5650}
 .leave-workspace .leave-pending-count{background:#7ed8cb20;color:#a2e5d8}.leave-workspace .active .leave-pending-count{background:#153d3b15;color:#153d3b}
 .leave-workspace .leave-header-filters :is(select,input){background:#ffffff09;border-color:#ffffff25;color:#eff7fa;color-scheme:dark}.leave-workspace .leave-header-filters input::placeholder{color:#aac6d1}.leave-workspace .leave-list-search>.icon{color:#aac6d1}
}
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 .leave-workspace .leave-summary-card.tone-0 strong,.leave-workspace .leave-summary-card.tone-0>.icon{color:#9fc4ff}
 .leave-workspace .leave-summary-card.tone-1 strong,.leave-workspace .leave-summary-card.tone-1>.icon{color:#8bdcea}
 .leave-workspace .leave-summary-card.tone-2 strong,.leave-workspace .leave-summary-card.tone-2>.icon{color:#d2b4f4}
 .leave-workspace .leave-summary-card.time-3 strong,.leave-workspace .leave-summary-card.tone-3 strong,.leave-workspace .leave-summary-card.tone-3>.icon{color:#87e3cd}
 .leave-workspace .leave-history-card>.cardhead h2{color:#9bded5!important}
 .leave-workspace .leave-entitlement-card>.cardhead h2{color:#d2b4f4!important}
 .mobile-leave-record>strong{color:#287f79}.mobile-credit-records>div>b{color:#8662b1}
 .leave-workspace .mobile-leave-card{border-top-color:#b499de}.mobile-leave-person>.avatar{background:#eee8f8;color:#8765ad}.mobile-leave-person strong{font-size:14px;color:var(--ink)}
 .mobile-queue-status{background:#f8efdc;color:#966d24}.leave-workspace .mobile-leave-card h2{color:#287f79}.mobile-leave-card-footer>strong{color:#8662b1}
 .leave-request-detail{gap:14px!important}.leave-request-detail>p{margin:0;font-size:13px;line-height:1.7}.leave-request-detail>.row.between{padding:10px 12px;border-radius:10px;background:#217c760b;font-weight:600;color:#287f79}
 .leave-decision-actions{display:grid!important;grid-template-columns:1fr 1.4fr;gap:10px!important}
 .leave-decision-actions [data-status="approved"]{background:#217c76!important;color:#fff!important}
 .leave-decision-actions [data-status="rejected"]{border-color:#dbb8be;color:#a54c5b;background:#fff8f8}
 dialog [data-confirm][data-status="rejected"]{background:#a54c5b!important;color:#fff}
}

/* Finish the mobile leave flow with the same surfaces as the home cards. */
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 .leave-workspace :is(.leave-personal-grid>.card,.leave-team-card,.mobile-leave-card,.card:has(.calgrid)),
 dialog:has(#entry-form[data-endpoint="leaves"],.leave-request-detail,.leave-decision-confirm,.leave-movement-dialog,.leave-balance-grid){
  --surface:#18313e;--card:#18313e;--bg:#132b37;--ink:#eff7fa;--text:#eff7fa;--muted:#b2c8d2;--line:#ffffff17;--accent:#8dded0;--accent-soft:#8dded018;--on-accent:#123e3a;
  color-scheme:dark;color:var(--ink);background:linear-gradient(145deg,#15333e,#19283b);border-color:#ffffff1c;box-shadow:0 5px 18px #0b233018;
 }
 .leave-workspace .leave-personal-grid .cardhead{background:#ffffff04!important}
 .leave-workspace .leave-personal-grid .cardfooter{background:#ffffff03;color:#b2c8d2;border-color:#ffffff17}
 .leave-workspace .leave-personal-grid .cardfooter .linkbtn{color:#9bded5}.leave-workspace .leave-personal-grid .cardfooter .linkbtn:disabled{color:#78939f;opacity:.65}
 .leave-workspace .mobile-leave-record{color:#eff7fa;border-color:#ffffff17}.leave-workspace .mobile-leave-record>strong{color:#9bded5}.leave-workspace .mobile-leave-dates,.leave-workspace .mobile-leave-record>b>small{color:#b2c8d2}.leave-workspace .mobile-leave-record>b{color:#eaf4ff}
 .leave-workspace .mobile-credit-records strong{color:#e0eaf1}.leave-workspace .mobile-credit-records small{color:#aec4d0}.leave-workspace .mobile-credit-records b{color:#d2b4f4}
 .leave-workspace .mobile-leave-state.is-approved{background:#72d7b1}.leave-workspace .mobile-leave-state.is-pending{background:#ffd17c}.leave-workspace .mobile-leave-state.is-rejected{background:#f29b9f}.leave-workspace .mobile-leave-state.is-withdrawn{background:#98abc3}
 .leave-workspace .mobile-leave-card h2{color:#9bded5}.leave-workspace .mobile-leave-person strong{color:#eff7fa}.leave-workspace .mobile-leave-person small,.leave-workspace .mobile-leave-card>p{color:#b2c8d2}.leave-workspace .mobile-leave-person>.avatar{background:#c4a3f322;color:#d2b4f4}.leave-workspace .mobile-queue-status{background:#ffd17c18;color:#ffd17c}.leave-workspace .mobile-leave-card-footer>strong{color:#d2b4f4}.leave-workspace .mobile-leave-card-footer>.btn{background:#8dded0;color:#153d3b}
 .leave-workspace .leave-team-card .mobile-record{background:#ffffff04;border-color:#ffffff18}.leave-workspace .leave-team-card .mobile-record .linkbtn{color:#9bded5}
 .leave-workspace .calhead,.leave-workspace .calday{background:transparent;border-color:#ffffff17;color:#bdd0da}.leave-workspace .calday.today{background:#8dded015}.leave-workspace .daynum{color:#dceaf0}.leave-workspace .mobile-calendar-mark{background:#8dded01b;color:#9fe4d8}
 dialog:has(#entry-form[data-endpoint="leaves"],.leave-request-detail,.leave-decision-confirm,.leave-movement-dialog,.leave-balance-grid) :is(.formbody,.formfoot){background:transparent;color:#eff7fa}
 dialog:has(#entry-form[data-endpoint="leaves"],.leave-request-detail,.leave-decision-confirm,.leave-movement-dialog,.leave-balance-grid) .formfoot{background:#162d3b;border-color:#ffffff1c}
 #entry-form[data-endpoint="leaves"] :is(input,select,textarea){background:#ffffff07;border-color:#ffffff28;color:#eff7fa;color-scheme:dark}
 #entry-form[data-endpoint="leaves"] :is(input,textarea)::placeholder{color:#91acba}
 #entry-form[data-endpoint="leaves"] label{color:#bed7e0;font-weight:500}
 #entry-form[data-endpoint="leaves"] .formhint{color:#a9c0cd;font-weight:400}
 #entry-form[data-endpoint="leaves"] #days-hint{background:#8dded014;border:1px solid #8dded02b;color:#9fe4d8;border-radius:10px;font-size:12px}
 dialog:has(#entry-form[data-endpoint="leaves"],.leave-request-detail,.leave-decision-confirm) .btn.secondary{background:#ffffff07;color:#cce0e9;border-color:#ffffff28}
 dialog:has(#entry-form[data-endpoint="leaves"]) .formfoot>.btn.primary{background:#8dded0;color:#153d3b}
 .leave-request-detail>.row.between{background:#8dded012;color:#9fe4d8}.leave-request-detail>.appearance-note{background:#ffffff05;border-color:#ffffff20;color:#c4d8e2}
 .leave-request-detail>.person strong,.leave-request-detail .person strong{color:#eff7fa}.leave-request-detail small{color:#aac4d0}
 .leave-request-detail .pill,.leave-decision-confirm .pill{border-color:#ffffff1c}
 .leave-request-detail .pill.approved{background:#8dded01b;color:#9fe4d8}.leave-request-detail .pill.orange{background:#ffd17c18;color:#ffd17c}
 .leave-decision-actions [data-status="approved"]{background:#8dded0!important;color:#153d3b!important}
 .leave-decision-actions [data-status="rejected"]{background:#f29b9f0b!important;color:#f3b0b3!important;border-color:#f29b9f55!important}
 dialog:has(.leave-decision-confirm) .formfoot>.btn.primary[data-status="approved"]{background:#8dded0;color:#153d3b}
 dialog:has(.leave-decision-confirm) .formfoot>.btn.primary[data-status="rejected"]{background:#ce747e!important;color:#fff}
 .leave-decision-confirm>p{font-size:13px;line-height:1.7;color:#c4d8e2!important}
}
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 .leave-workspace .leave-header-filters #mall-filter{background:#ffffff09!important;border-color:#ffffff25!important;color:#eff7fa!important;color-scheme:dark}
 .leave-request-detail>p[style]{color:#b2c8d2!important}
 .leave-request-detail .pill.pending{background:#9fc4ff1c;color:#b5d2ff}
 .leave-request-detail .pill.rejected{background:#f29b9f18;color:#f3b0b3}
}
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 .leave-workspace .leave-team-card{overflow:hidden}
 .mobile-people-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-bottom:1px solid #ffffff17;background:#ffffff03}
 .mobile-people-heading>strong{font-size:12px;color:#b4d8dc;font-weight:500}
 .mobile-people-heading>select{max-width:160px;min-height:36px;padding:7px 10px;font-size:11px;background:#ffffff08;color:#e1edf3;border-color:#ffffff25;color-scheme:dark;border-radius:9px}
 .mobile-people-list{padding:0 12px}.mobile-people-record{padding:12px 0;border-bottom:1px solid #ffffff17}.mobile-people-record:last-child{border:0}
 .mobile-people-person{display:flex;align-items:center;gap:10px;width:100%;padding:0;min-height:40px;background:none;border:0;color:#eff7fa;font:inherit;text-align:left;cursor:pointer}
 .mobile-people-person>.avatar{width:32px;height:32px;min-width:32px;border-radius:10px;font-size:10px;background:#9fc4ff18;color:#9fc4ff}
 .mobile-people-person>span:nth-child(2){display:grid;gap:4px;flex:1;min-width:0}
 .mobile-people-person strong{font-size:13px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#eff7fa}
 .mobile-people-person small{font-size:10px;line-height:1.5;color:#b2c8d2;font-weight:400}
 .mobile-people-person>b{font-size:19px;line-height:1.2;text-align:right;color:#8dded0;white-space:nowrap}
 .mobile-people-person>b>small{display:block;font-size:9px;margin-top:3px}
 .mobile-people-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-left:42px;margin-top:6px;min-height:32px}
 .mobile-people-footer>span{font-size:9px;line-height:1.5;color:#aac2ce}.mobile-people-footer b{font-weight:500;color:#d2b4f4;white-space:nowrap}.mobile-people-footer em{font-style:normal;color:#a3d9ea}
 .mobile-people-footer>button{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border-radius:9px;border:1px solid #c4a3f32b;background:#c4a3f30b;color:#d2b4f4;cursor:pointer}.mobile-people-footer>button>.icon{width:16px;height:16px}
 .mobile-people-empty{padding:16px 0;font-size:12px;color:#b2c8d2}
 .leave-workspace .mobile-leave-empty{background:linear-gradient(145deg,#15333e,#19283b);border-color:#ffffff1c;--ink:#eff7fa;--muted:#b2c8d2;color:#eff7fa}
 .leave-workspace .mobile-leave-empty .empty{padding:28px 16px}.leave-workspace .mobile-leave-empty h3{color:#eff7fa}
 .leave-workspace .calgrid{background:none;border-color:#ffffff17}
 .leave-workspace :is(.calday,.calhead){background:transparent!important;color:#c4d8e2;border-color:#ffffff17!important}
 .leave-workspace .calday.today{background:#8dded013!important}.leave-workspace .calday.today .daynum{background:#8dded0;color:#153d3b}
 .leave-workspace .calday-empty{background:#ffffff02!important}
 .leave-workspace .mobile-calendar-mark{background:#8dded01b;color:#9fe4d8;min-height:25px}.leave-workspace .mobile-calendar-mark:hover{background:#8dded02b}
 .leave-workspace .formhint{color:#6b7f92;font-size:10px;line-height:1.6}
 dialog:has(.mobile-day-people){--surface:#18313e;--ink:#eff7fa;--muted:#b2c8d2;--line:#ffffff17;--accent:#8dded0;background:linear-gradient(145deg,#15333e,#19283b);color:#eff7fa;border-color:#ffffff1c;color-scheme:dark}
 .mobile-day-people>button,.mobile-day-people>div{color:#eff7fa;gap:12px}.mobile-day-people>button>span{color:#8dded0}
 .leave-workspace .mobile-leave-card{padding:14px;border-radius:14px}.leave-workspace .mobile-leave-person{gap:9px}.leave-workspace .mobile-leave-person strong{font-size:14px}.leave-workspace .mobile-leave-card>p{font-size:11px;line-height:1.6}
 .leave-workspace .mobile-leave-card-footer>.btn{min-height:42px;font-size:12px;flex:0 0 auto;width:auto;padding:10px 14px}
}
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 .leave-pagehead>.head-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
 .leave-pagehead>.head-actions>.btn{min-width:0;min-height:42px;white-space:nowrap;font-size:11px;padding:10px 9px}
 .leave-pagehead>.head-actions>.btn.primary{grid-column:1/-1;order:-1;min-width:0}
 .leave-workspace .leave-list-search{background:#ffffff09!important;border-color:#ffffff25!important;border-radius:9px}
 .leave-workspace .leave-list-search input{background:transparent!important;color:#eff7fa!important}
 .leave-workspace .leave-list-search input::placeholder{color:#aac6d1!important}
}
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 .mobile-workspace-page:not(:has(.leave-workspace)),dialog[data-mobile-flow]:not([data-mobile-flow=""]){--surface:#18313e;--card:#18313e;--bg:#132b37;--ink:#eff7fa;--text:#eff7fa;--muted:#b2c8d2;--line:#ffffff17;--accent:#8dded0;--accent-soft:#8dded018;--on-accent:#153d3b;color-scheme:dark;color:var(--ink)}
 .mobile-workspace-page:not(:has(.leave-workspace)) :is(.card,.panel,.request-toolbar,.task-toolbar,.rm-toolbar){background:linear-gradient(145deg,#15333e,#19283b);border-color:#ffffff1c;box-shadow:0 4px 16px #0b233012}
 .mobile-workspace-page:not(:has(.leave-workspace)) :is(.cardhead,.panelhead,.cardfooter){background:#ffffff03;border-color:#ffffff17;color:#b2c8d2}
 .mobile-workspace-page:not(:has(.leave-workspace)) :is(.cardhead,.panelhead) h2{color:#a8dfda;font-size:15px}
 .mobile-workspace-page:not(:has(.leave-workspace)) :is(input,select,textarea){background:#ffffff07;color:#eff7fa;border-color:#ffffff26;color-scheme:dark}
 .mobile-workspace-page:not(:has(.leave-workspace)) input::placeholder{color:#9cb6c4}
 .mobile-workspace-page:not(:has(.leave-workspace)) .btn:not(.primary){background:#ffffff08;border-color:#ffffff24;color:#cce0e9}
 .mobile-workspace-page:not(:has(.leave-workspace)) .btn.primary{background:#8dded0;color:#153d3b;border-color:transparent}
 .mobile-workspace-page :is(.settings-page-tabs,.leave-hub-nav){background:transparent;border-color:#ffffff17}
 .mobile-workspace-page:not(:has(.leave-workspace)) :is(.settings-page-tabs,.leave-hub-nav)>button{background:#ffffff05;color:#c4d8e2;border-color:#ffffff1b;box-shadow:none;min-height:38px}
 .mobile-workspace-page:not(:has(.leave-workspace)) :is(.settings-page-tabs,.leave-hub-nav)>button.active{background:#8dded0;color:#153d3b;border-color:#8dded0;box-shadow:none}
 .mobile-workspace-page .task-summary button{background:linear-gradient(140deg,#173641,#1c293e);border-color:#ffffff20;color:#c4d8e2}.mobile-workspace-page .task-summary button strong{color:#9fc4ff}.mobile-workspace-page .task-summary button:nth-child(2) strong{color:#ffd17c}.mobile-workspace-page .task-summary button:nth-child(3) strong{color:#d2b4f4}
 .mobile-task-records,.mobile-finance-records{padding:0 12px}
 .mobile-task-record{padding:13px 0;border-bottom:1px solid #ffffff17}.mobile-task-record:last-child{border:0}
 .mobile-task-record>button{display:flex;align-items:center;gap:8px;min-height:32px;width:100%;padding:0;background:none;border:0;color:#eff7fa;text-align:left;cursor:pointer;font:inherit}
 .mobile-task-record>button>strong{font-size:13px;line-height:1.5;flex:1;min-width:0;overflow-wrap:anywhere}.mobile-task-record>button>span:last-child{font-size:9px;color:#9bded5;white-space:nowrap}
 .mobile-task-record>p{font-size:10px;color:#b2c8d2;line-height:1.5;margin:5px 0 8px;padding-left:15px}
 .mobile-task-record>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-left:15px}.mobile-task-meta{font-size:10px;color:#a9c3d2}.mobile-task-meta.is-important{color:#ffd17c}
 .mobile-complete-task{display:flex;align-items:center;gap:5px;min-height:34px;padding:7px 9px;background:#8dded012;color:#9fe4d8;border:1px solid #8dded02b;border-radius:9px;font:inherit;font-size:10px;cursor:pointer}.mobile-complete-task .icon{width:14px;height:14px}
 .mobile-finance-record{display:grid;gap:8px;min-height:96px;width:100%;padding:14px 0;border:0;border-bottom:1px solid #ffffff17;background:none;color:#eff7fa;text-align:left;font:inherit;cursor:pointer}.mobile-finance-record:last-child{border:0}
 .mobile-finance-main{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.mobile-finance-main strong{font-size:13px;line-height:1.5;min-width:0;flex:1;overflow-wrap:anywhere}.mobile-finance-main b{font-size:13px;color:#8dded0;white-space:nowrap}.mobile-finance-meta{font-size:10px;color:#b2c8d2;line-height:1.5}.mobile-finance-foot{display:flex;justify-content:space-between;align-items:center;gap:8px}.mobile-finance-foot>small{font-size:9px;color:#9cb8c6}
 .mobile-workspace-page :is(.purchase-approval-card,.expense-approval-card) h2{color:#eff7fa}.mobile-workspace-page :is(.purchase-approval-card,.expense-approval-card) p,.mobile-workspace-page :is(.purchase-card-meta,.expense-card-meta){color:#b2c8d2}
 .mobile-workspace-page :is(.purchase-decision-total,.expense-decision-total){background:#8dded010;border-color:#8dded025;color:#9fe4d8}
 .mobile-workspace-page :is(.purchase-card-footer,.expense-card-footer)>.btn{background:#8dded0;color:#153d3b}
 .mobile-workspace-page .mobile-record{background:#ffffff03;border-color:#ffffff17}.mobile-workspace-page .mobile-record:first-child{margin-top:10px}.mobile-workspace-page .mobile-record:last-child{margin-bottom:10px}.mobile-workspace-page .mobile-record .linkbtn,.mobile-workspace-page .rm-title{color:#a8dfda}
 .mobile-workspace-page .rm-toolbar{flex-wrap:wrap}.mobile-workspace-page .rm-list .panelhead{padding:12px;gap:8px;flex-wrap:wrap}.mobile-workspace-page .rm-list .panelhead small{font-size:10px;color:#aac4d0}.mobile-workspace-page .rm-status{background:#8dded015;color:#9fe4d8}
 .mobile-workspace-page :is(.pill.pending,.pill.orange){background:#ffd17c18;color:#ffd17c}.mobile-workspace-page .pill.approved{background:#8dded019;color:#9fe4d8}.mobile-workspace-page .pill.rejected{background:#f29b9f18;color:#f3b0b3}
 .mobile-workspace-page .empty{color:#b2c8d2;padding:28px 16px}.mobile-workspace-page .empty :is(h2,h3,strong){color:#eff7fa}
 .mobile-back-home{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:8px 11px;margin:0 0 12px;background:linear-gradient(125deg,#173641,#1c293e);border:1px solid #294754;border-radius:10px;color:#b8e5df;font-size:11px;font-weight:600;box-shadow:0 2px 8px #102e370b}
 .mobile-back-home>.icon{width:16px;height:16px;color:#8dded0}.mobile-back-home:active{background:#24434f;color:#eff7fa}
 dialog[data-mobile-flow]:not([data-mobile-flow=""]){background:linear-gradient(145deg,#15333e,#19283b);border-color:#ffffff1c}
 dialog[data-mobile-flow]:not([data-mobile-flow=""]) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#ffffff07;color:#eff7fa;border-color:#ffffff28;color-scheme:dark}
 dialog[data-mobile-flow]:not([data-mobile-flow=""]) :is(input,textarea)::placeholder{color:#91acba}
 dialog[data-mobile-flow]:not([data-mobile-flow=""]) label{color:#c4dbe4}
 dialog[data-mobile-flow]:not([data-mobile-flow=""]) :is(.formhint,.task-muted,.task-history,.rm-note,.rm-heartbeat){color:#aac4d0}
 dialog[data-mobile-flow]:not([data-mobile-flow=""]) .formfoot{background:#162d3b;border-color:#ffffff1c}
 dialog[data-mobile-flow]:not([data-mobile-flow=""]) .btn:not(.primary){background:#ffffff08;color:#cce0e9;border-color:#ffffff28}
 dialog[data-mobile-flow]:not([data-mobile-flow=""]) .btn.primary{background:#8dded0;color:#153d3b}
 dialog[data-mobile-flow]:not([data-mobile-flow=""]) :is(.info,.appearance-note,.rm-mall-selection,.purchase-item-editor,.expense-item-editor,.task-subtasks,.task-upload){background:#ffffff04;color:#c4dbe4;border-color:#ffffff20}
 dialog[data-mobile-flow]:not([data-mobile-flow=""]) :is(.purchase-detail-facts,.expense-detail-facts){background:#ffffff04;border-color:#ffffff1c}
 dialog[data-mobile-flow]:not([data-mobile-flow=""]) :is(.purchase-decision-box,.expense-decision-box,.purchase-form-total,.expense-form-total){background:#8dded010;border:1px solid #8dded02b;border-radius:12px;color:#b8e5df}
 dialog[data-mobile-flow]:not([data-mobile-flow=""]) :is(.purchase-reject,.expense-reject){background:#f29b9f0b!important;color:#f3b0b3!important;border:1px solid #f29b9f55!important}
 dialog[data-mobile-flow]:not([data-mobile-flow=""]) :is([data-purchase-print],[data-expense-print]){display:none!important}
 .mobile-workspace-page :is([data-purchase-print],[data-expense-print]){display:none!important}
}
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 .mobile-workspace-page .pagehead:has(.visitor-toolbar){display:flex;flex-direction:column;gap:14px}
 .mobile-workspace-page .pagehead:has(.visitor-toolbar)>.head-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px}
 .mobile-workspace-page .visitor-toolbar{display:contents}.mobile-workspace-page .visitor-toolbar>.visitor-mall-filter,.mobile-workspace-page .visitor-toolbar>.visitor-report-box{min-height:0;padding:10px;gap:6px;background:#ffffff04;border-color:#ffffff1c;min-width:0}
 .mobile-workspace-page .visitor-toolbar .visitor-mall-filter select,.mobile-workspace-page .visitor-date-box input{background:#ffffff07;color:#eff7fa;border-color:#ffffff25;font-size:12px}
 .mobile-workspace-page .visitor-toolbar>.visitor-mall-filter>span,.mobile-workspace-page .visitor-control-label{font-size:10px;color:#9bded5}
 .mobile-workspace-page .visitor-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .mobile-workspace-page .visitor-stats .card.stat{padding:14px 12px;min-width:0}.mobile-workspace-page .visitor-stats .stat-top{margin-bottom:10px;min-height:30px}.mobile-workspace-page .visitor-stats .stat-top>span:first-child{font-size:10px}.mobile-workspace-page .visitor-stats .stat-top strong{font-size:inherit}
 .mobile-workspace-page .visitor-stats .value{font-size:27px;color:#9fc4ff}.mobile-workspace-page .visitor-stats .stat:nth-child(2) .value{color:#8dded0}.mobile-workspace-page .visitor-average-pair strong{font-size:21px;color:#d2b4f4}.mobile-workspace-page .visitor-average-pair span{font-size:9px;color:#b2c8d2}
 .mobile-workspace-page .visitor-stats .stat-icon{background:#9fc4ff14;color:#9fc4ff;width:28px;height:28px}.mobile-workspace-page .visitor-stats .stat-icon .icon{width:16px;height:16px}
 .mobile-workspace-page .visitor-stat-mall,.mobile-workspace-page .visitor-title-scope{color:#aac4d0;font-size:10px}
 .mobile-workspace-page .visitor-records-grid,.mobile-workspace-page .visitor-chart-grid{grid-template-columns:1fr;gap:14px}.mobile-workspace-page .visitor-records-grid{margin-bottom:14px}
 .mobile-workspace-page :is(.visitor-daily-records,.visitor-monthly-records) .tablewrap{max-height:none!important;overflow-x:auto;overflow-y:visible}
 .mobile-workspace-page :is(.visitor-main-chart,.visitor-chart-grid .card) .cardhead{padding:12px;gap:10px;flex-wrap:wrap}.mobile-workspace-page .visitor-main-chart .cardhead h2{font-size:14px}
 .mobile-workspace-page .visitor-metric-toggle{background:#ffffff07;border-color:#ffffff1c;display:flex;gap:4px;padding:4px;border-radius:10px}.mobile-workspace-page .visitor-metric-toggle button{background:none;color:#b2c8d2;font-size:10px;padding:8px;border:0;min-height:34px}.mobile-workspace-page .visitor-metric-toggle button.active{background:#8dded0;color:#153d3b;border-radius:7px}
 .mobile-workspace-page .visitor-line-chart text{fill:#b2c8d2}.mobile-workspace-page .visitor-line-chart .gridline{stroke:#ffffff1a}.mobile-workspace-page .visitor-legend{color:#c4d8e2}
 .mobile-workspace-page .visitor-delta.up{color:#8dded0}.mobile-workspace-page .visitor-delta.down{color:#f29b9f}
 .mobile-workspace-page .visitor-selected-row{background:#8dded010}
 dialog[data-mobile-flow]:not([data-mobile-flow=""]) :is(.task-description,.purchase-description,.expense-description){color:#c4d8e2;font-size:13px;line-height:1.7}
 dialog[data-mobile-flow]:not([data-mobile-flow=""]) :is(.task-detail>p,.purchase-detail-body>p,.expense-detail-body>p){font-size:13px;line-height:1.7;color:#c4d8e2}
 dialog[data-mobile-flow]:not([data-mobile-flow=""]) .compact-actions{display:flex;flex-wrap:wrap;gap:8px}dialog[data-mobile-flow]:not([data-mobile-flow=""]) .compact-actions>.btn{min-height:42px;flex:1;justify-content:center;font-size:11px}
 dialog[data-mobile-flow]:not([data-mobile-flow=""]) :is(.task-file,.task-history,.purchase-timeline,.expense-timeline,.rm-history){border-color:#ffffff17;color:#b2c8d2}
 dialog[data-mobile-flow]:not([data-mobile-flow=""]) :is(.purchase-decision-total,.expense-decision-total){background:#8dded010;border-color:#8dded02b;color:#9fe4d8}
}
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 dialog[data-mobile-flow="expenses"] .expense-receipt-editor{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:12px}
 dialog[data-mobile-flow="expenses"] .expense-receipt-editor>label{grid-column:1/-1!important;min-width:0;width:100%}
 dialog[data-mobile-flow="purchase"] .purchase-item-editor{grid-template-columns:repeat(2,minmax(0,1fr))!important}.purchase-item-editor>label:first-child{grid-column:1/-1}
 .mobile-workspace-page .visitor-stats :is(.stat-top,.stat-top span,.visitor-average-title,.visitor-average-title small,.visitor-coverage,.visitor-deltas small){color:#b2c8d2!important}
 .mobile-workspace-page .visitor-stats .stat-top{min-width:0;gap:5px}.mobile-workspace-page .visitor-stats .stat-top>span:first-child{white-space:normal;overflow-wrap:anywhere;line-height:1.6}
 .mobile-workspace-page .visitor-stats .stat-top strong{color:#eff7fa}.mobile-workspace-page .visitor-stats .visitor-stat-mall{color:#b2c8d2}
 .mobile-workspace-page :is(.visitor-daily-records,.visitor-monthly-records) table td{color:#dce8ef!important}.mobile-workspace-page :is(.visitor-daily-records,.visitor-monthly-records) table th{color:#adc7d5}
 .mobile-workspace-page .visitor-coverage{color:#b2c8d2}.mobile-workspace-page .visitor-average-title small{color:#b2c8d2}
}
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 .mobile-workspace-page:not(:has(.leave-workspace)) .cardfooter .linkbtn{color:#9bded5}.mobile-workspace-page:not(:has(.leave-workspace)) .cardfooter .linkbtn:disabled{color:#78939f;opacity:.65}
 .mobile-workspace-page .visitor-stats .stat-top{align-items:flex-start;min-height:46px;height:auto}.mobile-workspace-page .visitor-stats .stat-top>span:first-child{flex:1;min-width:0}.mobile-workspace-page .visitor-stats .stat-top strong{display:block}.mobile-workspace-page .visitor-stats .stat-icon{flex-shrink:0}
}
.mobile-shortcut-grid>a.mobile-shortcut{text-decoration:none;box-sizing:border-box}
.mobile-shortcuts-edit,.mobile-topbar-brand{display:none}
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 .topbar .mobile-shortcuts-edit{display:grid;place-items:center;width:34px;height:34px;min-width:34px;padding:0;border:1px solid #ffffff19;border-radius:10px;background:#ffffff08;color:#b8e5df;cursor:pointer}
 .topbar .mobile-shortcuts-edit .icon{width:18px;height:18px}.topbar .mobile-shortcuts-edit:active{background:#8dded024}
 .topbar .top-right{gap:5px}.topbar:has(.mobile-topbar-brand) .breadcrumb{display:none}
 .mobile-topbar-brand{display:flex;align-items:center;gap:7px;width:clamp(108px,35vw,145px);min-width:0;margin-right:auto;flex-shrink:1}
 .mobile-topbar-symbol{width:23px;height:23px;object-fit:contain;filter:brightness(0) invert(1);flex-shrink:0}
 .mobile-topbar-wordmark{display:block;min-width:0;width:100%;height:auto;object-fit:contain}
 .mobile-topbar-company{max-width:100%;max-height:30px;object-fit:contain}.mobile-topbar-name{font-size:13px;font-weight:600;color:#eff7fa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 dialog:has(.mobile-shortcut-editor){--surface:#18313e;--bg:#132b37;--ink:#eff7fa;--muted:#b2c8d2;--line:#ffffff17;--accent:#8dded0;--accent-soft:#8dded018;--on-accent:#153d3b;background:linear-gradient(145deg,#15333e,#19283b);color:#eff7fa;border-color:#ffffff20;color-scheme:dark}
 .mobile-shortcut-editor{gap:12px!important}.mobile-shortcut-editor>p{font-size:12px;line-height:1.6;color:#b2c8d2;margin:0}
 .mobile-shortcut-choices{display:grid;gap:8px}
 .mobile-shortcut-choice{display:grid;grid-template-columns:28px minmax(0,1fr) 60px;align-items:center;gap:9px;padding:11px 10px;border:1px solid #ffffff18;border-radius:11px;background:#ffffff04;--shortcut-tone:#9fc4ff}
 .mobile-shortcut-choice.mobile-tone-green{--shortcut-tone:#87e3cd}.mobile-shortcut-choice.mobile-tone-purple{--shortcut-tone:#d2b4f4}.mobile-shortcut-choice.mobile-tone-amber{--shortcut-tone:#ffd17c}.mobile-shortcut-choice.mobile-tone-cyan{--shortcut-tone:#8bdcea}
 .mobile-shortcut-choice>.mobile-shortcut-icon{width:28px;height:28px;border-radius:8px;color:var(--shortcut-tone);background:color-mix(in srgb,var(--shortcut-tone) 13%,transparent)}
 .mobile-shortcut-choice>label{display:grid;grid-template-columns:minmax(0,1fr) 20px;gap:3px 8px;align-items:center;margin:0;color:#eff7fa;font-size:12px;font-weight:500;cursor:pointer;min-height:32px}
 .mobile-shortcut-choice>label>span{grid-column:1;line-height:1.5;overflow-wrap:anywhere}.mobile-shortcut-choice>label>small{grid-column:1;font-size:9px;color:#9cb6c4;font-weight:400}
 .mobile-shortcut-choice>label>input{grid-column:2;grid-row:1/3;width:18px;height:18px;margin:0;accent-color:#8dded0;cursor:pointer}
 .mobile-shortcut-order{display:flex;gap:4px}.mobile-shortcut-order>button{display:grid;place-items:center;width:28px;min-height:32px;padding:0;border:1px solid #ffffff20;border-radius:7px;background:#ffffff06;color:#b8e5df;font:inherit;font-size:17px;cursor:pointer}.mobile-shortcut-order>button:disabled{opacity:.3;cursor:default}
 .mobile-shortcut-fixed{display:grid;place-items:center;color:#8eacba}.mobile-shortcut-fixed .icon{width:16px;height:16px}
 dialog:has(.mobile-shortcut-editor) .formfoot{background:#162d3b;border-color:#ffffff17}
 dialog:has(.mobile-shortcut-editor) .formfoot>.btn.primary{background:#8dded0;color:#153d3b}
 dialog:has(.mobile-shortcut-editor) .formfoot>.btn.secondary{background:#ffffff07;color:#c4d8e2;border-color:#ffffff25}
}
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 .mobile-topbar-brand{gap:7px}
 .mobile-topbar-wordmark{flex:1;min-width:0;width:0;height:auto}
 .mobile-topbar-divider{width:1px;height:20px;flex-shrink:0;background:#ffffff40}
 .mobile-topbar-tagline{font-size:6px;line-height:1.4;letter-spacing:.35px;color:#e4f0f3;font-weight:500;white-space:nowrap;flex-shrink:0}
}
@media(max-width:350px){.mobile-topbar-divider,.mobile-topbar-tagline{display:none}}
.brand-home{display:block;text-decoration:none;color:inherit;min-width:0;border-radius:10px;cursor:pointer}
.brand-home:focus-visible,.mobile-topbar-brand:focus-visible{outline:2px solid #8dded0;outline-offset:3px}
.mobile-topbar-brand{text-decoration:none;color:inherit;cursor:pointer}

@media(max-width:800px), (max-width:1100px) and (pointer:coarse){
 .mobile-topbar-brand{width:clamp(118px,40vw,162px)}
 .mobile-topbar-tagline{font-size:6.5px;letter-spacing:.25px}
}
.workspace-identity{display:flex;align-items:center;gap:10px;padding:12px 10px;margin:0 0 18px;border-bottom:1px solid var(--nav-line);color:var(--nav-ink);min-width:0}
.workspace-identity-mark{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:9px;background:var(--nav-active);color:var(--nav-ink);font-size:11px;font-weight:600}
.workspace-identity>span:last-child{display:grid;gap:3px;min-width:0}.workspace-identity strong{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.workspace-identity small{font-size:10px;color:var(--nav-muted)}
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){.sidebar .workspace-identity{display:none}}
.topbar-workspace{display:inline-flex;align-items:center;padding-left:12px;border-left:1px solid var(--line);font-size:11px;font-weight:500;line-height:20px;color:var(--muted);white-space:nowrap}
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){.topbar-workspace{display:none!important}}
.sidebar-workspace-footer{margin-top:12px;padding:12px 10px 3px;border-top:1px solid var(--nav-line);display:grid;gap:4px;color:var(--nav-muted);text-align:left}
.sidebar-workspace-footer>span{font-size:9px;line-height:1.4}.sidebar-workspace-footer>strong{font-size:11px;line-height:1.5;font-weight:500;overflow-wrap:anywhere}
@media(max-width:800px), (max-width:1100px) and (pointer:coarse){.sidebar-workspace-footer{display:none!important}}
/* Definition screens: compact, consistent identity panels. */
.settings-content{max-width:1180px}
.settings-content .pagehead h1{font-size:25px;line-height:1.25}
.settings-content .pagehead .report-export-menu,.settings-content .pagehead [data-action="print-report"]{display:none}
.settings-content .brand-logo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.settings-content .brand-logo-grid>div{padding:16px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--accent) 3%,var(--surface))}
.settings-content .brand-logo-grid .logo-preview{display:flex;align-items:center;justify-content:center;height:108px;border-radius:9px;color:#718096}
.settings-content .brand-logo-grid .logo-preview img{max-width:85%;max-height:76px;object-fit:contain}
.settings-content .brand-logo-grid>div:nth-child(2) .logo-preview{color:#cad5e0}
.settings-content .compact-actions{flex-wrap:nowrap}
.settings-content .compact-actions .btn{width:32px;height:32px;padding:5px;justify-content:center}
.notification-rule{padding:14px 0;border-bottom:1px solid var(--line);gap:14px}.notification-rule:last-child{border-bottom:0}.notification-rule small{display:block;margin-top:5px;color:var(--muted)}
@media(max-width:700px){.settings-content .brand-logo-grid{grid-template-columns:1fr}.settings-content .pagehead h1{font-size:21px}}
.mall-table .mall-name{font-weight:700;text-align:left;color:var(--ink);padding:4px 0}.mall-table .mall-name:hover{color:var(--accent)}
.notification-rule-list{max-width:900px}.notification-rule-link{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px;border:0;background:transparent;color:var(--ink);font:inherit;font-size:14px;font-weight:600;text-align:left;cursor:pointer}.notification-rule-link:hover{background:color-mix(in srgb,var(--accent) 6%,transparent)}.notification-rule-link .icon{width:16px;height:16px;color:var(--accent)}
.mall-settings-context{display:flex;align-items:center;gap:20px;margin-bottom:16px}.mall-settings-context strong{font-size:20px}.mall-settings-context .linkbtn{font-size:12px;color:var(--muted)}.mall-identity{display:grid;grid-template-columns:1fr 1fr;gap:20px}.mall-identity small,.mall-identity strong{display:block}.mall-identity small{color:var(--muted);margin-bottom:7px}.mall-settings-content .pagehead h1{font-size:21px}.mall-settings-content .compact-actions .btn{width:auto}.mall-settings-content .cardhead h2{display:flex;align-items:center;gap:8px}@media(max-width:700px){.mall-identity{grid-template-columns:1fr}.mall-settings-context{gap:12px;flex-wrap:wrap}}
.company-mall-links{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
/* AVM definitions share a compact table and form rhythm. */
#content.mall-settings-content>.card,#content.mall-settings-content>.pagehead{max-width:1000px}
#content.mall-settings-content table{font-size:13px}
#content.mall-settings-content table th{padding:11px 15px;font-size:11px;height:auto}
#content.mall-settings-content table td{padding:10px 15px;height:auto;line-height:1.4}
#content.mall-settings-content table .btn{min-height:29px;padding:5px 9px;font-size:12px}
#content.mall-settings-content .pagehead{margin-bottom:14px;gap:14px}
#content.mall-settings-content .pagehead p:empty{display:none}
dialog.mall-settings-modal,dialog:has(#mall-contact-form),dialog:has(#mall-status-form){width:min(520px,calc(100vw - 28px));max-width:520px}
dialog.mall-settings-modal .modalhead{padding:17px 20px;display:flex;flex-wrap:wrap;gap:5px 12px}
dialog.mall-settings-modal .modalhead h2{font-size:19px;flex:1;line-height:1.3}
.modal-mall-name{order:3;flex-basis:100%;font-size:12px;color:var(--muted)}
dialog.mall-settings-modal .formbody{padding:18px 20px;gap:13px}
dialog.mall-settings-modal label{font-size:12px;gap:6px}
dialog.mall-settings-modal input:not([type=checkbox]):not([type=hidden]),dialog.mall-settings-modal select{height:37px;min-height:37px;padding:8px 10px;font-size:13px}
dialog.mall-settings-modal textarea{min-height:65px;font-size:13px;padding:9px 10px}
dialog.mall-settings-modal .formfoot{padding:13px 20px;gap:8px}
dialog.mall-settings-modal .formfoot .btn{min-height:34px;padding:8px 13px;font-size:13px}
.notification-people{max-height:230px;overflow-y:auto;border:1px solid var(--line);border-radius:9px}
.notification-people .notification-person{display:flex;align-items:center;gap:10px;padding:9px 12px;border-bottom:1px solid var(--line);margin:0;cursor:pointer}
.notification-people .notification-person:last-child{border-bottom:0}.notification-person[hidden]{display:none!important}
.notification-person input{width:16px;height:16px;flex-shrink:0;margin:0}.notification-person small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.mall-table .mall-address-cell{max-width:360px;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
/* Uploaded AVM identity stays compact, uncropped and aligned to the card title. */
.settings-content .mall-detail-card-head{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:76px}
.mall-detail-card-head h2{display:flex;align-items:center;gap:9px;min-width:0;margin:0;overflow-wrap:anywhere}
.mall-card-brand{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:116px;height:48px;margin-left:auto}
.mall-card-brand img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;filter:none;mix-blend-mode:normal}
.mall-card-brand.both-variants .mall-card-logo-reverse{display:none}
html[data-mode=dark] .mall-card-brand.both-variants .mall-card-logo-standard{display:none}
html[data-mode=dark] .mall-card-brand.both-variants .mall-card-logo-reverse{display:block}
.mall-card-brand.reverse-only{padding:6px 9px;border-radius:8px;background:#1c2d3e}
html[data-mode=dark] .mall-card-brand.standard-only{padding:6px 9px;border-radius:8px;background:#fff}
@media(max-width:640px){.settings-content .mall-detail-card-head{gap:12px;min-height:66px}.mall-card-brand{width:88px;height:38px}.mall-detail-card-head h2{font-size:15px}}
.company-logo-platform h3{margin:0 0 10px!important;font-size:14px!important}.company-logo-platform+.company-logo-platform{padding-top:17px;border-top:1px solid var(--line)}.company-logo-platform h4{font-size:13px;margin:0}.logo-preview-dark{color:#cad5e0!important}.company-logos-card .cardhead{gap:18px}.company-logos-card .cardhead .mall-card-brand{margin-left:auto}.settings-content .brand-logo-grid>div:nth-child(2) .logo-preview{color:#cad5e0}
.logo-upload-guide{display:block;margin:9px 0 11px;color:var(--muted);font-size:11px;line-height:1.5}.company-logo-platform .brand-logo-grid>div{min-width:0}.company-logo-platform .logo-preview img{max-width:85%;max-height:76px}.sidebar .custom-brand:not(:has(.brand-standard)) .brand-reverse{display:block!important}
@media(max-width:800px){.mobile-topbar-brand:has(.mobile-topbar-tagline) .mobile-topbar-company{max-width:136px;max-height:28px;object-fit:contain}.mobile-topbar-brand{min-width:0}}

/* Tenant login branding preserves original artwork and aspect ratio. */
.login-company-brand{display:flex!important;align-items:center;justify-content:flex-start;max-width:440px;min-width:0}.login-company-brand img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100px!important;object-fit:contain!important;filter:none!important}.login-company-brand.light-logo-panel{padding:16px 20px;background:#fff;border-radius:14px}.platform-login-fields{display:grid;gap:12px;border:1px solid var(--line,#dce3eb);border-radius:12px;padding:18px;margin:18px 0 0}.platform-login-fields legend{font-weight:700;padding:0 6px}.platform-login-fields small{line-height:1.5}.platform-login-fields .checkline{display:flex;align-items:center;gap:10px}.platform-login-fields input[type=checkbox]{width:18px;height:18px;flex:none}
@media(max-width:760px){.login-company-brand{max-width:230px}.login-company-brand img{max-height:56px!important}.login-company-brand.light-logo-panel{padding:8px 12px}.platform-login-fields{padding:12px}}

.approval-role-person{font-size:.85em;font-weight:400;color:var(--muted,#6c7e8f);margin-left:5px}

.sidebar .nav-single>.navgroup-items{display:block}.sidebar .nav-single{margin:0!important;padding:0!important}.sidebar .navgroup:has(+.nav-single){margin-bottom:0!important}

.sidebar .nav-direct{margin:0!important;padding:0!important}.sidebar .nav-direct>.navgroup-items{display:block}

/* Compact desktop dashboard headings, consistent across all tools. */
.dashboard-tools>.dashboard-tool:before{display:none!important}
.dashboard-tools .dashboard-tool>.dash-heading-refined{height:64px!important;min-height:64px!important;padding:12px 18px!important;gap:12px;justify-content:flex-start;background:linear-gradient(115deg,color-mix(in srgb,var(--dash-tone,var(--accent)) 11%,var(--surface)),color-mix(in srgb,var(--dash-tone,var(--accent)) 3%,var(--surface)))!important;border-bottom:1px solid color-mix(in srgb,var(--dash-tone,var(--accent)) 22%,var(--line))!important}
.dashboard-tools .dash-heading-refined>.dash-heading-icon{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;font-style:normal;border-radius:11px;background:color-mix(in srgb,var(--dash-tone,var(--accent)) 17%,var(--surface));color:var(--dash-tone,var(--accent));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dash-tone,var(--accent)) 18%,transparent)}
.dashboard-tools .dash-heading-icon svg{width:20px;height:20px;stroke-width:1.9}
.dashboard-tools .dash-heading-refined h2{font-size:16px!important;font-weight:700;line-height:1.3;letter-spacing:-.25px;flex:1;min-width:0;margin:0;color:var(--ink)}

/* Layered titles: a raised caption overlaps a fine, theme-aware frame. */
.dashboard-tools>.dashboard-tool{position:relative;overflow:visible!important;margin-top:23px;border:1px solid color-mix(in srgb,var(--accent) 62%,var(--line))!important;border-radius:12px;box-shadow:0 5px 15px #172b4508}
.dashboard-tools .dashboard-tool>.dash-heading-refined{position:absolute;z-index:2;top:-23px;left:17px;max-width:calc(100% - 34px);width:max-content;box-sizing:border-box;height:auto!important;min-height:46px!important;padding:8px 14px!important;gap:10px;border:1px solid var(--line)!important;border-radius:12px;background:var(--surface)!important;box-shadow:0 4px 12px #172b451b;justify-content:flex-start}
.dashboard-tools .dash-heading-refined>.dash-heading-icon{width:28px;height:28px;flex-basis:28px;border-radius:50%;background:transparent!important;color:var(--accent);border:1px solid color-mix(in srgb,var(--accent) 58%,var(--line));box-shadow:none!important}
.dashboard-tools .dash-heading-icon svg{width:17px;height:17px}
.dashboard-tools .dash-heading-refined h2{font-size:15px!important;font-weight:650;line-height:1.35;letter-spacing:-.2px;overflow-wrap:anywhere}
.dashboard-tools .dashboard-tool>.dash-tool-content{padding-top:38px!important;border-radius:12px}
.dashboard-tools .dash-size-small>.dash-heading-refined{left:12px;max-width:calc(100% - 24px);padding-inline:10px!important;gap:8px}
.dashboard-tools .dash-size-small>.dash-heading-refined h2{font-size:14px!important}
html[data-mode=dark] .dashboard-tools>.dashboard-tool{box-shadow:0 6px 18px #0002}
html[data-mode=dark] .dashboard-tools .dashboard-tool>.dash-heading-refined{box-shadow:0 4px 14px #0004}

/* Overview uses the top bar as its only desktop title and layout control. */
.topbar .overview-top-title{display:flex;align-items:center;gap:9px;white-space:nowrap;color:var(--ink)}.topbar .overview-top-title h1{margin:0;font-size:19px;font-weight:650;line-height:1.2;letter-spacing:-.4px}.topbar .overview-top-title>.icon{width:21px;height:21px;color:var(--accent)}.overview-layout-edit{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;flex-shrink:0;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--surface);color:var(--muted);cursor:pointer}.overview-layout-edit:hover{color:var(--accent);background:var(--accent-soft)}.overview-layout-edit>.icon{width:18px;height:18px}
@media(max-width:800px),(max-width:1100px) and (pointer:coarse){.topbar .overview-top-title{display:none}}

/* Navigation hierarchy: current page, hover and section headings are distinct. */
.sidebar .navitem:not(.active):hover{background:transparent!important;color:var(--nav-selected,var(--nav-ink));box-shadow:none!important}
.sidebar .navitem:not(.active):hover>.icon{color:var(--accent);opacity:1}
.sidebar .nav-accordion{margin-top:16px;margin-bottom:8px}
.sidebar .nav-accordion>summary.navlabel{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:10px 12px;margin:0 0 8px;border:0;border-bottom:1px solid var(--nav-line);border-radius:0;background:transparent!important;box-shadow:none;font-size:15px!important;font-weight:650;letter-spacing:-.15px;text-transform:none;color:var(--nav-ink);line-height:1.35}
.sidebar .nav-accordion>summary.navlabel:hover{color:var(--nav-selected,var(--nav-ink))}
.sidebar .nav-accordion>summary.navlabel>.icon{width:16px;height:16px;color:var(--nav-muted);opacity:.8}
.sidebar .nav-accordion>.navgroup-items{padding-left:8px;margin-left:12px;border-left:1px solid var(--nav-line)}
.sidebar .nav-accordion>.navgroup-items>.navitem{padding-left:12px}
.sidebar .navitem.active>.icon{color:var(--accent);opacity:1}

/* Three independent workspace compositions; document and mobile layouts stay intact. */
@media screen {
html[data-palette="pera"]{--bg:#eeede8;--surface:#fffefa;--ink:#293630;--muted:#758078;--line:#dcded5;--accent:#275e56;--accent-soft:#e6efea;--nav-bg:#faf9f6;--nav-ink:#394b43;--nav-muted:#7b8881;--nav-line:#dcded5;--nav-active:#e2ede7;--nav-selected:#234a3c;--panel-radius:3px;--control-radius:6px;--sidebar-width:258px}
html[data-palette="prism"]{--bg:#f0f0f7;--surface:#fff;--ink:#2c2941;--muted:#7c7890;--line:#e1dfed;--accent:#6a53c4;--accent-soft:#efebfc;--nav-bg:#242534;--nav-ink:#e5e3f2;--nav-muted:#9997b3;--nav-line:#ffffff15;--nav-active:#6a53c440;--nav-selected:#fff;--panel-radius:16px;--control-radius:9px;--sidebar-width:272px}

html[data-palette="pera"][data-mode="dark"]{--bg:#1c2521;--surface:#25322b;--ink:#e3ebe4;--muted:#a2b2a7;--line:#3c4b40;--accent:#9acbb4;--accent-soft:#354e40;--nav-bg:#202c25;--nav-ink:#d7e5da;--nav-muted:#9aaa9e;--nav-line:#3c4b40;--nav-active:#354e40;--nav-selected:#eaf4ec}
html[data-palette="prism"][data-mode="dark"]{--bg:#191925;--surface:#252536;--ink:#edeafa;--muted:#b0a9c5;--line:#3e3a54;--accent:#b6a0fc;--accent-soft:#43365f;--nav-bg:#1e1e2c}

.preview-pera .preview-nav{border-right:1px solid #cbd5cb}.preview-pera .preview-content b{border-top:0;border-left:3px solid var(--preview-accent);border-radius:0}
.preview-prism .preview-content b{border-radius:6px;border-top-width:6px}.preview-prism .preview-top{background:#302b49}

}
@media screen and (min-width:801px) and (hover:hover) {
/* Pera — a light navigation ledger and crisp editorial panels. */
html[data-palette="pera"] .sidebar{padding:0 14px 16px;border-right:1px solid var(--line)}
html[data-palette="pera"] .sidebar .brand-home{display:block;background:#23483e;margin:0 -14px 20px;padding:25px 20px}
html[data-palette="pera"] .sidebar .brand{margin:0}
html[data-palette="pera"] .sidebar .navitem{border-radius:3px;margin:3px 0;min-height:42px}
html[data-palette="pera"] .sidebar .navitem.active{box-shadow:none;border-left:3px solid var(--accent);font-weight:650}
html[data-palette="pera"] .sidebar .nav-accordion>summary.navlabel{font-size:13px!important;letter-spacing:.2px;border:0;border-top:1px solid var(--line);padding-top:17px}
html[data-palette="pera"] .topbar{background:var(--bg);border:0;height:68px}
html[data-palette="pera"] .content{padding:16px 32px 36px}
html[data-palette="pera"] .pagehead{border-bottom:2px solid var(--ink);padding:0 0 22px;margin-bottom:24px}
html[data-palette="pera"] .pagehead h1{font-size:28px;font-weight:600;letter-spacing:-1px}
html[data-palette="pera"] :is(.card,.panel){border-radius:3px;box-shadow:0 3px 0 color-mix(in srgb,var(--line) 65%,transparent)}
html[data-palette="pera"] .cardhead{background:var(--surface);border-bottom:1px solid var(--ink);padding:17px 20px}
html[data-palette="pera"] .dashboard-tools>.dashboard-tool{margin-top:0;border:1px solid var(--line)!important;border-radius:3px;box-shadow:0 3px 0 var(--line)}
html[data-palette="pera"] .dashboard-tools>.dashboard-tool>.dash-heading-refined{position:static;width:100%;max-width:none;min-height:56px!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0;box-shadow:none;background:var(--surface)!important;padding:13px 20px!important}
html[data-palette="pera"] .dash-heading-icon{border:0!important;border-radius:0!important;background:var(--accent-soft);padding:6px;width:32px!important;height:32px!important}
html[data-palette="pera"] .dashboard-tools>.dashboard-tool>:not(.dash-heading-refined){padding-top:22px!important}
html[data-palette="pera"] table{border-collapse:collapse}html[data-palette="pera"] table th{background:var(--accent-soft);font-size:11px;letter-spacing:.4px;padding-top:13px;padding-bottom:13px}
html[data-palette="pera"] table td{padding-top:13px;padding-bottom:13px}html[data-palette="pera"] table tbody tr:nth-child(even){background:color-mix(in srgb,var(--bg) 45%,var(--surface))}
/* Prizma — anchored navigation, framed title plates and inset data sheets. */
html[data-palette="prism"] .sidebar{padding:26px 18px;border-right:0;box-shadow:6px 0 24px #17152a12}
html[data-palette="prism"] .sidebar .navitem{border-radius:10px;min-height:44px;margin:4px 0;padding:11px 14px}
html[data-palette="prism"] .sidebar .navitem.active{background:var(--accent);color:var(--on-accent);box-shadow:0 5px 14px #17152a25}
html[data-palette="prism"] .sidebar .navitem.active>.icon{color:inherit}
html[data-palette="prism"] .sidebar .nav-accordion>summary.navlabel{font-size:13px!important;padding:15px 13px;border-bottom:0;color:var(--nav-muted)}
html[data-palette="prism"] .topbar{height:74px;border-bottom:0;box-shadow:0 3px 18px #24253406}
html[data-palette="prism"] .content{padding:28px 32px}
html[data-palette="prism"] .pagehead{padding:22px 25px;border-left:5px solid var(--accent);border-radius:4px 16px 16px 4px;background:var(--surface);box-shadow:0 4px 18px #24253407;margin-bottom:25px}
html[data-palette="prism"] .pagehead h1{font-size:25px}html[data-palette="prism"] .pagehead h1 svg{flex-shrink:0}
html[data-palette="prism"] :is(.card,.panel){border:0;box-shadow:0 5px 22px #24253409;overflow:hidden}
html[data-palette="prism"] .cardhead{background:var(--accent-soft);border-bottom:0;padding:18px 22px}
html[data-palette="prism"] .dashboard-tools>.dashboard-tool{margin-top:0;border:0!important;border-radius:16px;overflow:hidden!important;box-shadow:0 5px 22px #2425340c}
html[data-palette="prism"] .dashboard-tools>.dashboard-tool>.dash-heading-refined{position:static;width:100%;max-width:none;min-height:62px!important;border:0!important;border-radius:0;box-shadow:none;background:var(--accent-soft)!important;padding:14px 22px!important}
html[data-palette="prism"] .dash-heading-icon{border:0!important;background:var(--surface);border-radius:9px!important;width:34px!important;height:34px!important;padding:7px;box-shadow:0 2px 5px #2425340a}
html[data-palette="prism"] .dashboard-tools>.dashboard-tool>:not(.dash-heading-refined){padding-top:23px!important}
html[data-palette="prism"] table th{background:var(--surface);border-bottom:2px solid var(--accent);padding:16px;font-size:11px}
html[data-palette="prism"] table td{padding:16px;border-left:0}html[data-palette="prism"] table tbody tr:hover{background:var(--accent-soft)}
html[data-palette="prism"] dialog{border:0;border-radius:20px;box-shadow:0 24px 80px #17152a40}html[data-palette="prism"] .modalhead{background:var(--accent-soft);border-bottom:0;padding:22px 26px}
/* Orbit — full-width navigation bar; groups open as compact dropdown menus. */




























}
@media screen and (min-width:801px) and (hover:hover){
html[data-palette="pera"] dialog{border-radius:4px;border:1px solid var(--line);box-shadow:0 20px 65px #152c2630}
html[data-palette="pera"] .modalhead{padding:20px 24px;background:var(--surface);border-bottom:2px solid var(--accent)}
html[data-palette="pera"] :is(input,select,textarea){border-radius:4px;background:var(--surface)}
html[data-palette="pera"] :is(.tabs,.tabsbar){border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
html[data-palette="prism"] :is(input,select,textarea){background:color-mix(in srgb,var(--bg) 55%,var(--surface));border-color:transparent;border-radius:9px}
html[data-palette="prism"] :is(input,select,textarea):focus{background:var(--surface);border-color:var(--accent)}




html:is([data-palette="pera"],[data-palette="prism"]) .topbar .top-right{min-width:0}
}
@media screen and (min-width:801px) and (max-width:1400px){html:is([data-palette="pera"],[data-palette="prism"]) .topbar .viewer-greeting{display:none}}
/* Prizma navigation: structured index, restrained current-page marker. */
@media screen and (min-width:801px) and (hover:hover){
html[data-palette="prism"]{--sidebar-width:252px;--nav-bg:#242734;--nav-active:#ffffff0b;--nav-ink:#d9dce8;--nav-muted:#8f97ac;--nav-line:#ffffff10}
html[data-palette="prism"] .sidebar{padding:0 12px 18px;box-shadow:none;border-right:1px solid var(--nav-line)}
html[data-palette="prism"] .sidebar .brand-home{display:block;margin:0 -12px 14px;padding:27px 24px 23px;border-bottom:1px solid var(--nav-line);background:#1d202b}
html[data-palette="prism"] .sidebar .brand{margin:0}
html[data-palette="prism"] .sidebar .navitem{min-height:40px;padding:10px 13px;gap:11px;margin:2px 0;border:0;border-radius:5px;font-size:13px;color:var(--nav-ink);background:transparent;box-shadow:none}
html[data-palette="prism"] .sidebar .navitem.active{background:#ffffff0b;color:#fff;font-weight:650;box-shadow:inset 2px 0 #b5a4f5}
html[data-palette="prism"] .sidebar .navitem.active>.icon{color:#c4b7fa}
html[data-palette="prism"] .sidebar .navitem:not(.active):hover{color:#fff;background:#ffffff05!important}
html[data-palette="prism"] .sidebar .navitem>.icon{width:17px;height:17px;color:#9da8bc;opacity:1}
html[data-palette="prism"] .sidebar .nav-accordion{margin:17px 0 7px}
html[data-palette="prism"] .sidebar .nav-accordion>summary.navlabel{min-height:39px;padding:12px 13px 9px;margin:0 0 5px;border-top:1px solid var(--nav-line);border-bottom:0;font-size:13px!important;font-weight:600;letter-spacing:0;color:#aeb7cc;background:transparent!important}
html[data-palette="prism"] .sidebar .nav-accordion>summary.navlabel>.icon{width:14px;height:14px;color:#7e8aa3}
html[data-palette="prism"] .sidebar .nav-accordion>.navgroup-items{margin:0;padding:0;border:0}
html[data-palette="prism"] .sidebar .nav-accordion>.navgroup-items>.navitem{padding-left:22px;font-size:12px;min-height:37px}
html[data-palette="prism"] .sidebar .navitem .nav-count{border-radius:4px;background:#ffffff14;color:#d9cdfd}
html[data-palette="prism"] .sidebar .profile{border-top:1px solid var(--nav-line);padding:16px 10px 0;margin-top:20px}
}
/* Pera: continuous light navigation, compact rhythm and an unboxed brand. */
@media screen and (min-width:801px) and (hover:hover){
html[data-palette="pera"] .sidebar{padding:18px 12px 14px;background:var(--nav-bg)}
html[data-palette="pera"] .sidebar .brand-home{background:transparent;margin:0 0 13px;padding:12px 10px 19px;border-bottom:1px solid var(--nav-line);border-radius:0}
html[data-palette="pera"] .sidebar .brand{margin:0}
html[data-palette="pera"] .sidebar .brand-wordmark{filter:brightness(0);opacity:.85;width:190px}
html[data-palette="pera"] .sidebar .brand small{color:var(--nav-muted);font-size:8px;letter-spacing:1.8px}
html[data-palette="pera"] .sidebar .custom-brand .brand-reverse{display:none}
html[data-palette="pera"] .sidebar .custom-brand .brand-standard{display:block}
html[data-palette="pera"] .sidebar .custom-brand img{filter:none;max-height:44px;object-fit:contain}
html[data-palette="pera"] .sidebar .navgroup{margin:0!important;padding:0!important}
html[data-palette="pera"] .sidebar .navitem{min-height:37px;padding:8px 11px;margin:1px 0;border-radius:4px;font-size:13px;gap:10px;border:0}
html[data-palette="pera"] .sidebar .navitem.active{border:0;box-shadow:inset 2px 0 var(--accent);font-weight:650}
html[data-palette="pera"] .sidebar .navitem>.icon{width:17px;height:17px}
html[data-palette="pera"] .sidebar .nav-accordion{margin-top:8px!important}
html[data-palette="pera"] .sidebar .nav-accordion>summary.navlabel{min-height:35px;margin:0;padding:9px 11px 7px;border:0;border-top:1px solid var(--nav-line);font-size:13px!important;font-weight:600;letter-spacing:0;color:var(--nav-ink)}
html[data-palette="pera"] .sidebar .nav-accordion>summary.navlabel>.icon{width:13px;height:13px}
html[data-palette="pera"] .sidebar .nav-accordion>.navgroup-items{margin:0;padding:0;border:0}
html[data-palette="pera"] .sidebar .nav-accordion>.navgroup-items>.navitem{padding-left:15px}
html[data-palette="pera"][data-mode="dark"] .sidebar .brand-wordmark{filter:brightness(0) invert(1)}
html[data-palette="pera"][data-mode="dark"] .sidebar .custom-brand .brand-reverse{display:block}
html[data-palette="pera"][data-mode="dark"] .sidebar .custom-brand .brand-standard{display:none}
}
@media screen and (min-width:801px) and (hover:hover){html[data-palette="pera"][data-mode="light"] .sidebar .brand-wordmark{filter:brightness(0);opacity:.85}}
@media screen and (min-width:801px) and (hover:hover){
html[data-palette="prism"] .dashboard-tools>.dashboard-tool>.dash-heading-refined{border:1px solid color-mix(in srgb,var(--accent) 17%,var(--line))!important;border-bottom-color:color-mix(in srgb,var(--accent) 24%,var(--line))!important;border-radius:16px 16px 0 0}
html[data-palette="prism"] .cardhead{border:1px solid color-mix(in srgb,var(--accent) 17%,var(--line));border-bottom-color:color-mix(in srgb,var(--accent) 24%,var(--line));border-radius:16px 16px 0 0}
}
@media screen and (min-width:801px) and (hover:hover){
html[data-palette="prism"] .sidebar .nav-accordion:not([open]){margin-bottom:0}
html[data-palette="prism"] .sidebar .nav-accordion:not([open])>summary.navlabel{margin-bottom:0;padding-top:9px;padding-bottom:9px;min-height:36px}
html[data-palette="prism"] .sidebar .nav-accordion:not([open])+.navgroup{margin-top:3px!important}
}
@media screen and (min-width:801px) and (hover:hover){
html[data-palette="pera"] .dashboard-tools>.dashboard-tool>.dash-heading-refined,html[data-palette="pera"] .cardhead{background:color-mix(in srgb,var(--accent-soft) 78%,var(--surface))!important;border-bottom:1px solid color-mix(in srgb,var(--accent) 22%,var(--line))!important}
}
@media screen {
html[data-palette] .consumption-table-card .tablewrap tr.water-reading-entered>td{background:color-mix(in srgb,var(--accent) 6%,var(--surface))}
html[data-palette] .consumption-table-card .tablewrap tr.water-reading-entered:hover>td{background:color-mix(in srgb,var(--accent) 11%,var(--surface))}
html[data-palette] .consumption-table-card [data-water-live="status"].approved{background:var(--accent-soft);color:var(--accent)}
}
@media screen and (hover:hover){
html[data-palette="pera"] .sidebar .navitem:not(.active):hover{background:color-mix(in srgb,var(--accent) 9%,var(--nav-bg))!important;color:var(--accent);box-shadow:none!important}
html[data-palette="pera"] .sidebar .nav-accordion>summary.navlabel:hover{background:color-mix(in srgb,var(--accent) 6%,var(--nav-bg))!important;color:var(--accent)}
}
/* Atlas shares Pera's navigation geometry, retaining its own palette and type. */
@media screen and (min-width:801px) and (hover:hover){
html[data-palette="atlas"]{--sidebar-width:258px}
html[data-palette="atlas"] .sidebar{padding:0 14px 16px;gap:0}
html[data-palette="atlas"] .sidebar .brand-home{display:block;margin:0 -14px 14px;padding:25px 20px 23px;background:transparent;border-bottom:1px solid var(--nav-line)}
html[data-palette="atlas"] .sidebar .brand{margin:0}
html[data-palette="atlas"] .sidebar .navgroup{margin:0!important;padding:0!important}
html[data-palette="atlas"] .sidebar .navitem{min-height:37px;padding:8px 11px;margin:1px 0;border:0;border-radius:4px;gap:10px;background:transparent;box-shadow:none}
html[data-palette="atlas"] .sidebar .navitem.active{background:var(--nav-active);box-shadow:inset 2px 0 var(--accent);font-weight:650}
html[data-palette="atlas"] .sidebar .navitem>.icon{width:17px;height:17px}
html[data-palette="atlas"] .sidebar .nav-accordion{margin-top:8px!important}
html[data-palette="atlas"] .sidebar .nav-accordion>summary.navlabel{min-height:35px;margin:0;padding:9px 11px 7px;border:0;border-top:1px solid var(--nav-line);font-weight:600;letter-spacing:0;color:var(--nav-ink)}
html[data-palette="atlas"] .sidebar .nav-accordion>summary.navlabel>.icon{width:13px;height:13px}
html[data-palette="atlas"] .sidebar .nav-accordion>.navgroup-items{margin:0;padding:0;border:0}
html[data-palette="atlas"] .sidebar .nav-accordion>.navgroup-items>.navitem{padding-left:15px}
html[data-palette="atlas"] .sidebar .navitem:not(.active):hover{background:color-mix(in srgb,var(--accent) 9%,var(--nav-bg))!important;color:var(--nav-selected);box-shadow:none!important}
html[data-palette="atlas"] .sidebar .nav-accordion>summary.navlabel:hover{background:color-mix(in srgb,var(--accent) 6%,var(--nav-bg))!important;color:var(--nav-selected)}
}
@media screen and (min-width:801px) and (hover:hover){
html[data-palette="harbor"] .topbar{background:color-mix(in srgb,var(--accent-soft) 55%,var(--surface));border:0;border-bottom:1px solid color-mix(in srgb,var(--accent) 15%,var(--line));box-shadow:0 3px 14px #193f4207}
html[data-palette="harbor"] .topbar .search{background:color-mix(in srgb,var(--surface) 70%,var(--bg));border-color:var(--line)}
}
@media screen and (min-width:801px) and (hover:hover){
html[data-palette="pera"] .sidebar .brand-home{padding-bottom:7px}
html[data-palette="pera"] .sidebar .brand{width:100%;max-width:200px;margin:0 auto;align-items:flex-end}
html[data-palette="pera"] .sidebar .brand small{align-self:flex-end;text-align:right;margin:0;letter-spacing:1.6px;font-size:8px;line-height:1.3}
html[data-palette="pera"] .sidebar .custom-brand img{max-width:100%;width:100%;height:auto}
}
@media screen and (min-width:801px) and (hover:hover){
html:is([data-palette="atlas"],[data-palette="prism"],[data-palette="pera"]) .sidebar .brand-home{display:flex;align-items:center;box-sizing:border-box;padding:10px 20px;border-radius:0;height:var(--bar-height);min-height:var(--bar-height)}
html[data-palette="pera"] .sidebar .brand-home{height:68px;min-height:68px}
html[data-palette="prism"] .sidebar .brand-home{height:74px;min-height:74px}
html:is([data-palette="atlas"],[data-palette="prism"],[data-palette="pera"]) .sidebar .brand{width:100%;max-width:200px;margin:0 auto;align-items:flex-end;justify-content:center}
html:is([data-palette="atlas"],[data-palette="prism"],[data-palette="pera"]) .sidebar .brand small{align-self:flex-end;text-align:right;margin:0;letter-spacing:1.6px;font-size:8px;line-height:1.3}
html:is([data-palette="atlas"],[data-palette="prism"],[data-palette="pera"]) .sidebar .custom-brand img{width:100%;max-width:100%;height:auto;object-fit:contain}
}
/* Aurum — warm architectural surfaces and inset title rails. */
@media screen{
html[data-palette="obsidian"]{color-scheme:light;--bg:#f1f0eb;--surface:#fffefa;--ink:#303a3d;--muted:#7b8383;--line:#dfdfd6;--accent:#8c6943;--accent-soft:#f0eadd;--on-accent:#fffefa;--nav-bg:#292e30;--nav-ink:#e0e4e0;--nav-muted:#a0aaa6;--nav-line:#ffffff13;--nav-active:#ffffff09;--nav-selected:#fffdf6;--sidebar-width:250px;--panel-radius:10px;--control-radius:7px;--bar-height:68px}
html[data-palette="obsidian"][data-mode="dark"]{color-scheme:dark;--bg:#282e30;--surface:#343c3e;--ink:#f0f0e9;--muted:#b7bfbb;--line:#505b5a;--accent:#d3bc95;--accent-soft:#4b4c41;--on-accent:#28302e;--nav-bg:#252b2d;--nav-ink:#dce2dc;--nav-muted:#a0afa7}
.preview-obsidian .preview-nav{width:23%;background:#292e30}.preview-obsidian .preview-top{background:#faf9f5}.preview-obsidian .preview-content b{background:#fffefa;border:1px solid #deded4;border-left:3px solid #8c6943;border-radius:2px 6px 6px 6px}.preview-obsidian .preview-content>em{background:#e8e8df}
html[data-palette="obsidian"] :is(input,select,textarea){border-color:var(--line);border-radius:7px;background:color-mix(in srgb,var(--bg) 40%,var(--surface));color:var(--ink)}
html[data-palette="obsidian"] :is(input,select,textarea):focus{border-color:var(--accent);outline:2px solid color-mix(in srgb,var(--accent) 20%,transparent);outline-offset:2px;background:var(--surface)}
html[data-palette="obsidian"] .btn{border-radius:7px;letter-spacing:0;font-weight:600}
html[data-palette="obsidian"] .btn.primary{background:var(--accent);color:var(--on-accent);box-shadow:0 3px 6px #303a3d0b}
html[data-palette="obsidian"] dialog{border-radius:12px;border:1px solid var(--line);box-shadow:0 24px 85px #26333626}
html[data-palette="obsidian"] .modalhead{padding:21px 25px;background:color-mix(in srgb,var(--bg) 60%,var(--surface));border-bottom:1px solid var(--line);box-shadow:inset 4px 0 var(--accent)}
html[data-palette="obsidian"] .modalhead h2{font-size:20px;font-weight:600;letter-spacing:-.5px}
}
@media screen and (min-width:801px) and (hover:hover){
html[data-palette="obsidian"] .sidebar{padding:0 13px 16px;border-right:1px solid #ffffff08;background:var(--nav-bg);box-shadow:5px 0 22px #303a3d04}
html[data-palette="obsidian"] .sidebar .brand-home{height:68px;min-height:68px;box-sizing:border-box;display:flex;align-items:center;padding:10px 18px;margin:0 -13px 18px;border-bottom:1px solid var(--nav-line);border-radius:0}
html[data-palette="obsidian"] .sidebar .brand{width:100%;max-width:194px;margin:0 auto;align-items:flex-end}
html[data-palette="obsidian"] .sidebar .brand small{align-self:flex-end;text-align:right;margin:0;font-size:8px;letter-spacing:1.6px;color:var(--nav-muted)}
html[data-palette="obsidian"] .sidebar .brand-wordmark{background-image:url('/brand-wordmark-white.png');background-size:contain;background-position:center;background-repeat:no-repeat;filter:none;width:194px;height:23px}
html[data-palette="obsidian"] .sidebar .custom-brand .brand-standard{display:none}html[data-palette="obsidian"] .sidebar .custom-brand .brand-reverse{display:block;width:100%;max-width:100%;height:auto;object-fit:contain}
html[data-palette="obsidian"] .sidebar .navitem{min-height:40px;padding:9px 12px;margin:2px 0;border-radius:5px;font-size:13px;border:1px solid transparent;gap:11px}
html[data-palette="obsidian"] .sidebar .navitem.active{background:#ffffff09;border-color:#ffffff13;color:var(--nav-selected);box-shadow:inset 2px 0 #d3bc95;font-weight:600}
html[data-palette="obsidian"] .sidebar .navitem>.icon{width:17px;height:17px;color:#a6b3ab}
html[data-palette="obsidian"] .sidebar .navitem.active>.icon{color:#e1cda8}
html[data-palette="obsidian"] .sidebar .navitem:not(.active):hover{background:#ffffff06!important;color:#fff;box-shadow:none!important}
html[data-palette="obsidian"] .sidebar .nav-accordion{margin:9px 0 4px}
html[data-palette="obsidian"] .sidebar .nav-accordion>summary.navlabel{min-height:35px;padding:10px 12px 7px;margin:0;border:0;border-top:1px solid var(--nav-line);color:var(--nav-muted);font-size:12px!important;letter-spacing:.1px;font-weight:600}
html[data-palette="obsidian"] .sidebar .nav-accordion>.navgroup-items{border:0;margin:0;padding:0}
html[data-palette="obsidian"] .sidebar .nav-accordion>.navgroup-items>.navitem{padding-left:15px}
html[data-palette="obsidian"] .topbar{height:68px;padding:0 32px;background:var(--surface);border-bottom:1px solid var(--line)}
html[data-palette="obsidian"] .topbar .search{background:var(--bg);border-color:transparent;border-radius:7px}
html[data-palette="obsidian"] .topbar :is(.appearance-trigger,.overview-layout-edit){border-radius:7px;background:var(--surface)}
html[data-palette="obsidian"] .content{padding:30px 32px 40px;max-width:1800px}
html[data-palette="obsidian"] .pagehead{padding:0 0 23px;margin-bottom:26px;border-bottom:1px solid var(--line);align-items:center;gap:20px}
html[data-palette="obsidian"] .pagehead h1{font-size:27px;font-weight:600;letter-spacing:-.8px}
html[data-palette="obsidian"] .pagehead h1>.icon{padding:9px;box-sizing:content-box;border:1px solid var(--line);border-radius:5px;width:21px;height:21px;background:var(--surface);color:var(--accent)}
html[data-palette="obsidian"] :is(.card,.panel){border:1px solid var(--line);border-radius:10px;box-shadow:0 5px 18px #303a3d04}
html[data-palette="obsidian"] .cardhead{padding:18px 22px;background:color-mix(in srgb,var(--bg) 45%,var(--surface));border-bottom:1px solid var(--line);box-shadow:inset 3px 0 color-mix(in srgb,var(--accent) 55%,var(--line))}
html[data-palette="obsidian"] .cardhead h2{font-size:16px;font-weight:600;letter-spacing:-.3px}
html[data-palette="obsidian"] .dashboard-tools{gap:24px}
html[data-palette="obsidian"] .dashboard-tools>.dashboard-tool{position:relative;margin-top:0;overflow:visible!important;border:1px solid var(--line)!important;border-radius:3px 12px 12px 12px;background:var(--surface);box-shadow:0 5px 18px #303a3d05}
html[data-palette="obsidian"] .dashboard-tools>.dashboard-tool::after{content:"";position:absolute;right:13px;top:19px;width:23px;height:3px;background:color-mix(in srgb,var(--accent) 40%,var(--line));border-radius:2px;pointer-events:none}
html[data-palette="obsidian"] .dashboard-tools>.dashboard-tool>.dash-heading-refined{position:relative;top:auto;left:auto;margin:0;min-height:58px!important;width:100%;max-width:none;padding:14px 46px 14px 19px!important;border:0!important;border-left:3px solid var(--accent)!important;border-bottom:1px solid var(--line)!important;border-radius:2px 12px 0 0;background:linear-gradient(100deg,color-mix(in srgb,var(--accent-soft) 60%,var(--surface)),var(--surface) 78%)!important;box-shadow:none;gap:12px}
html[data-palette="obsidian"] .dashboard-tools>.dashboard-tool>.dash-heading-refined h2{font-size:16px;font-weight:600;letter-spacing:-.3px;color:var(--ink)}
html[data-palette="obsidian"] .dash-heading-icon{border:0!important;border-radius:4px!important;background:var(--surface);color:var(--accent);width:29px!important;height:29px!important;padding:5px;box-shadow:0 1px 4px #303a3d08}
html[data-palette="obsidian"] .dashboard-tools>.dashboard-tool>:not(.dash-heading-refined){padding-top:23px!important;border-radius:0 0 12px 12px}
html[data-palette="obsidian"] table th{background:color-mix(in srgb,var(--bg) 65%,var(--surface));padding:14px 16px;color:var(--muted);font-size:11px;letter-spacing:.3px;font-weight:600;border-bottom:1px solid var(--line)}
html[data-palette="obsidian"] table td{padding:14px 16px;border-left-color:color-mix(in srgb,var(--line) 65%,var(--surface))}
html[data-palette="obsidian"] table tbody tr:nth-child(even){background:color-mix(in srgb,var(--bg) 25%,var(--surface))}
html[data-palette="obsidian"] table tbody tr:hover{background:var(--accent-soft)}
html[data-palette="obsidian"] :is(.tabs,.tabsbar,.leave-hub-nav){background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:6px}
html[data-palette="obsidian"] .topbar .top-right{min-width:0}
}
@media screen and (min-width:801px) and (max-width:1400px){html[data-palette="obsidian"] .topbar .viewer-greeting{display:none}}
/* Open-frame titles: typography interrupts the frame instead of occupying a header band. */
@media screen and (min-width:801px) and (hover:hover){
html[data-palette="obsidian"] .sidebar .brand-wordmark{background-size:100% auto!important;background-position:center!important;width:194px!important;height:23px!important}
html[data-palette="obsidian"] .dashboard-tools>.dashboard-tool{margin-top:18px;border:1px solid color-mix(in srgb,var(--accent) 25%,var(--line))!important;border-radius:0 0 14px 0;box-shadow:4px 5px 0 color-mix(in srgb,var(--line) 40%,transparent)}
html[data-palette="obsidian"] .dashboard-tools>.dashboard-tool>.dash-heading-refined{position:absolute;top:-15px;left:20px;min-height:29px!important;width:max-content;max-width:calc(100% - 48px);margin:0;padding:0 12px!important;gap:9px;border:0!important;border-radius:0;background:var(--bg)!important;box-shadow:none}
html[data-palette="obsidian"] .dashboard-tools>.dashboard-tool>.dash-heading-refined h2{font-size:16px;font-weight:650;letter-spacing:-.35px;line-height:1.5}
html[data-palette="obsidian"] .dashboard-tools>.dashboard-tool>.dash-heading-refined .dash-heading-icon{width:21px!important;height:21px!important;padding:0;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none}
html[data-palette="obsidian"] .dashboard-tools>.dashboard-tool::after{top:auto;right:-1px;bottom:-1px;height:22px;width:22px;background:none;border-right:2px solid color-mix(in srgb,var(--accent) 55%,var(--line));border-bottom:2px solid color-mix(in srgb,var(--accent) 55%,var(--line));border-radius:0 0 14px 0}
html[data-palette="obsidian"] .dashboard-tools>.dashboard-tool>:not(.dash-heading-refined){padding-top:35px!important;border-radius:0 0 14px 0}
html[data-palette="obsidian"] :is(.card,.panel){border-radius:0 0 12px 0;box-shadow:3px 4px 0 color-mix(in srgb,var(--line) 35%,transparent)}
html[data-palette="obsidian"] .cardhead{background:transparent;box-shadow:none;border-bottom:1px solid var(--line);padding:18px 22px}
html[data-palette="obsidian"] .cardhead h2{padding-left:12px;border-left:2px solid var(--accent);line-height:1.35}
}
/* Aurum title finish: a quiet inset plaque, retaining the open-frame placement. */
@media screen and (min-width:801px) and (hover:hover){
html[data-palette="obsidian"] .dashboard-tools>.dashboard-tool>.dash-heading-refined{top:-19px;min-height:38px!important;padding:7px 15px!important;border:1px solid color-mix(in srgb,var(--accent) 17%,var(--line))!important;border-radius:3px 8px 3px 8px;background:linear-gradient(120deg,var(--surface),color-mix(in srgb,var(--accent-soft) 48%,var(--surface)))!important;box-shadow:0 0 0 5px var(--bg),0 4px 8px #303a3d08;gap:11px}
html[data-palette="obsidian"] .dashboard-tools>.dashboard-tool>.dash-heading-refined h2{font-weight:600;letter-spacing:-.4px}
html[data-palette="obsidian"] .dashboard-tools>.dashboard-tool>.dash-heading-refined .dash-heading-icon{color:var(--accent);opacity:.9}
html[data-palette="obsidian"] .dashboard-tools>.dashboard-tool>:not(.dash-heading-refined){padding-top:39px!important}
}
@media screen and (min-width:801px) and (hover:hover){
html[data-palette] #water-summary>.water-summary-group.water-distributed{background:color-mix(in srgb,var(--bg) 55%,var(--surface));border-color:var(--line);border-radius:8px}
html[data-palette] #water-summary .water-distributed .water-summary-tile{background:var(--surface);border:1px solid var(--line);border-radius:6px}
html[data-palette] #water-summary .water-distributed .water-tile-gross{background:color-mix(in srgb,var(--accent-soft) 30%,var(--surface));border-color:color-mix(in srgb,var(--accent) 17%,var(--line))}
html[data-palette] #water-summary .water-distributed h3{color:var(--ink);font-weight:600}
html[data-palette] #water-summary .water-distributed .water-summary-tile:first-child h2{color:var(--ink)}
}
@media screen{
html[data-palette] .consumption-table-card .tablewrap thead th{background:color-mix(in srgb,var(--ink) 11%,var(--surface))!important;color:var(--ink)!important;font-size:11px;font-weight:600;letter-spacing:.05px;line-height:1.4;padding-top:15px;padding-bottom:15px;border-top:1px solid var(--line);border-bottom:1px solid color-mix(in srgb,var(--ink) 24%,var(--line));box-shadow:none}
html[data-palette] .consumption-table-card .tablewrap thead th+th{border-left:1px solid var(--line)}
html[data-palette] .consumption-table-card .tablewrap thead th button{font-weight:600;color:inherit}
html[data-palette] .consumption-table-card .tablewrap thead th button .sort-indicator{opacity:.45}
}
@media screen{
html[data-palette] .consumption-table-card .tablewrap thead th:not(:last-child){border-right:1px solid var(--line)!important;box-shadow:none!important}
}
@media screen{
html[data-palette] .consumption-table-card .tablewrap thead{position:relative;z-index:1;filter:drop-shadow(0 4px 3px color-mix(in srgb,var(--ink) 16%,transparent))}
}
/* Shared screen-table headers; keep each module's sizing, sticky behavior and print layout. */
@media screen{
html[data-palette] :is(#content,dialog) table>thead{z-index:1;filter:drop-shadow(0 4px 3px color-mix(in srgb,var(--ink) 16%,transparent))}
html[data-palette] :is(#content,dialog) table>thead>tr>th{background:color-mix(in srgb,var(--ink) 11%,var(--surface))!important;color:var(--ink)!important;font-weight:600;border-top:1px solid var(--line);border-bottom:1px solid color-mix(in srgb,var(--ink) 24%,var(--line));box-shadow:none}
html[data-palette] :is(#content,dialog) table>thead>tr>th+th{border-left:1px solid var(--line)}
html[data-palette] :is(#content,dialog) table>thead>tr>th:not(:last-child){border-right:1px solid var(--line)!important;box-shadow:none!important}
html[data-palette] :is(#content,dialog) table>thead>tr>th button{color:inherit;font-weight:600}
}
@media screen{
.visitor-yesterday-label{display:block;margin:12px 0 0;color:var(--muted);font-size:12px}
.visitor-yesterday .value{margin-top:3px;margin-bottom:10px}
.visitor-yesterday-vehicles{display:flex;align-items:baseline;gap:9px;padding-top:10px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}
.visitor-yesterday-vehicles strong{color:var(--ink);font-size:19px;font-weight:600;font-variant-numeric:tabular-nums}
.visitor-stats .visitor-yesterday .stat-top>span:first-child{font-size:12px;white-space:normal}
.visitor-stats .visitor-yesterday .stat-top>span:first-child>strong{font-size:14px}
}
@media screen and (min-width:801px){
.visitor-daily-records table{table-layout:fixed;width:100%;min-width:0}
.visitor-daily-records table th,.visitor-daily-records table td{box-sizing:border-box;padding-left:10px;padding-right:10px;vertical-align:middle}
.visitor-daily-records table th{height:auto;white-space:normal}
.visitor-daily-records table :is(th,td):nth-child(1){width:23%;white-space:normal}
.visitor-daily-records table :is(th,td):nth-child(2){width:20%;white-space:normal;overflow-wrap:anywhere}
.visitor-daily-records table :is(th,td):nth-child(3),.visitor-daily-records table :is(th,td):nth-child(4){width:12%}
.visitor-daily-records table :is(th,td):nth-child(5){width:23%;min-width:0!important;max-width:none!important;white-space:normal!important;overflow-wrap:anywhere}
.visitor-daily-records table :is(th,td):last-child{width:10%;text-align:center;white-space:normal}
}

.visitor-yesterday .value .visitor-yesterday-label{display:inline;margin:0 0 0 4px;font-size:12px;font-weight:400;vertical-align:baseline}
@media(min-width:801px){.visitor-stats .visitor-yesterday .value{margin-top:0}.visitor-stats .stat:nth-child(n+3) .stat-top{min-height:38px}}

.tenant-list-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.tenant-list-search{position:relative;display:flex;align-items:center;margin:0;min-width:180px;width:260px}.tenant-list-search>.icon{position:absolute;left:11px;width:16px;height:16px;color:var(--muted);pointer-events:none}.tenant-list-search input{box-sizing:border-box;width:100%;height:36px;min-height:36px;margin:0;padding:7px 12px 7px 35px;font-size:12px}.tenant-list-status{display:flex!important;flex-direction:row!important;align-items:center;gap:9px;margin:0!important}.tenant-list-status>span{color:var(--muted);font-size:11px;font-weight:500}.tenant-list-status select{box-sizing:border-box;height:36px;min-height:36px;min-width:106px;width:auto;margin:0;padding:7px 30px 7px 12px;font-size:12px}@media(max-width:800px){.tenant-list-filters{width:100%;gap:8px}.tenant-list-search{flex:1;width:auto;min-width:140px}.tenant-list-status>span{display:none}}

.turnover-historical{font-variant-numeric:tabular-nums;white-space:nowrap}.turnover-historical strong{font-size:inherit;font-weight:500;color:var(--muted)}.turnover-historical small{display:block;margin-top:4px;font-size:10px;color:var(--muted)}

.visitor-yesterday-vehicles{justify-content:flex-start}

@media(min-width:801px){
.meter-page-head .head-actions{align-items:center}.meter-page-head .head-actions>#mall-filter{box-sizing:border-box;width:170px;min-width:150px;height:38px;min-height:38px;margin:0;padding:8px 32px 8px 12px;font-size:13px;font-weight:500;line-height:20px;background-color:var(--surface);color:var(--ink)}
.meter-list-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:16px 20px}.meter-group-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:4px}.meter-group-tabs .filtertab{margin:0;padding:9px 12px;min-height:36px;line-height:18px;font-size:12px;border-radius:7px}.meter-list-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin-left:auto}.meter-list-filters>label{display:flex;flex-direction:column;gap:6px;margin:0;font-size:11px;line-height:16px}.meter-list-filters select{box-sizing:border-box;height:36px;min-height:36px;margin:0;padding:7px 32px 7px 12px;font-size:12px;line-height:20px}.meter-list-filters #meter-tenant-filter{width:240px;max-width:100%}.meter-list-filters #meter-status-filter{width:115px}.meter-list-filters>.btn{height:36px;min-height:36px;font-size:12px}
}
@media(max-width:800px){.meter-list-toolbar,.meter-group-tabs,.meter-list-filters{display:flex;flex-wrap:wrap;gap:8px}.meter-list-filters{width:100%}.meter-list-filters>label{flex:1;min-width:120px}.meter-list-filters select{width:100%}}

@media(min-width:1101px){
.pagehead:has(.visitor-toolbar) .head-actions{row-gap:7px}
.pagehead:has(.visitor-toolbar) .head-actions .visitor-mall-filter{grid-column:1;grid-row:1 / 3}
.pagehead:has(.visitor-toolbar) .head-actions .visitor-date-box{grid-column:2;grid-row:1 / 3}
.pagehead:has(.visitor-toolbar) .head-actions>[data-action="deleted-visits"]{grid-column:3 / 5;grid-row:1;width:100%;min-height:25px;height:25px;padding:4px 5px;font-size:9px;line-height:15px;white-space:nowrap;justify-self:stretch}
.pagehead:has(.visitor-toolbar) .head-actions>[data-action="print-report"]{grid-column:3;grid-row:2}
.pagehead:has(.visitor-toolbar) .head-actions>.report-export-menu{grid-column:4;grid-row:2}
}

/* Keep both purchase list views within their card, including action buttons. */
@media screen and (min-width:801px){
#content .purchase-table{table-layout:fixed;width:100%;min-width:0}
#content .purchase-table :is(th,td){box-sizing:border-box;min-width:0;max-width:none;padding-left:10px;padding-right:10px;white-space:normal;overflow-wrap:anywhere}
#content .purchase-table th{font-size:11px;line-height:1.45}
#content .purchase-table th:nth-child(1){width:4%}#content .purchase-table th:nth-child(2){width:8%}#content .purchase-table th:nth-child(3){width:32%}#content .purchase-table th:nth-child(4){width:9%}#content .purchase-table th:nth-child(5){width:11%}#content .purchase-table th:nth-child(6){width:9%}#content .purchase-table th:nth-child(7){width:10%}#content .purchase-table th:nth-child(8){width:11%}#content .purchase-table th:nth-child(9){width:6%}
#content .purchase-table .purchase-subject{min-width:0}#content .purchase-table .purchase-title{max-width:100%;min-width:0;width:100%;overflow-wrap:anywhere;line-height:1.5}
#content .purchase-table .purchase-sort-button{gap:4px;min-width:0;align-items:center;white-space:normal}
#content .purchase-table .purchase-badge{white-space:normal;line-height:1.5}
#content .purchase-table td:last-child{padding-left:6px;padding-right:6px}#content .purchase-table td:last-child .meter-icon-button{width:25px;min-width:25px;height:25px;padding:3px;margin:2px;font-size:12px;vertical-align:middle}
}

/* Compact purchase detail with completed grid lines. */
.purchase-detail-body .tablewrap{border:1px solid var(--line);border-radius:6px;overflow:auto}.purchase-detail-body .tablewrap table{width:100%;border-collapse:separate;border-spacing:0}.purchase-detail-body .tablewrap :is(th,td){border-bottom:1px solid var(--line)}.purchase-detail-body .tablewrap tbody tr:last-child td{border-bottom:0}.purchase-detail-body .tablewrap :is(th,td)+:is(th,td){border-left:1px solid var(--line)}
.purchase-detail-body .purchase-approved-tick{display:inline;font-size:12px;margin-left:5px;background:none}
@media(min-width:801px){
dialog:has(.purchase-detail-body){width:min(820px,calc(100vw - 40px))}.purchase-detail-body{padding:20px 24px;gap:16px}.purchase-detail-body>h2{font-size:20px;line-height:1.4;margin:0}.purchase-detail-body>h3{font-size:14px;margin:4px 0 0}.purchase-detail-body .purchase-detail-facts{padding:12px 16px;gap:0;border:1px solid var(--line);border-radius:8px}.purchase-detail-body .purchase-detail-facts>div{padding:0 14px}.purchase-detail-body .purchase-detail-facts>div:first-child{padding-left:0}.purchase-detail-body .purchase-detail-facts>div+div{border-left:1px solid var(--line)}.purchase-detail-body .purchase-detail-facts span{font-size:11px}.purchase-detail-body .purchase-detail-facts strong{font-size:14px}.purchase-detail-body .purchase-detail-reason{padding:12px 16px;border-radius:8px}.purchase-detail-body .purchase-detail-reason h3{font-size:13px;margin:0 0 7px}.purchase-detail-body .purchase-detail-reason p{font-size:12px;line-height:1.65;white-space:pre-line;margin:0}.purchase-detail-body .tablewrap :is(th,td){padding:10px;font-size:12px}.purchase-detail-body .purchase-steps{margin:0;border:1px solid var(--line);border-radius:8px;padding:0 12px}.purchase-detail-body .purchase-steps li{padding:9px 0;gap:9px}.purchase-detail-body .purchase-steps li:last-child{border-bottom:0}.purchase-detail-body .purchase-steps li>span{width:22px;height:22px;flex-shrink:0;font-size:10px}.purchase-detail-body .purchase-steps li>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px;width:100%;min-width:0}.purchase-detail-body .purchase-steps strong{font-size:12px;line-height:22px}.purchase-detail-body .purchase-steps small{font-size:10px;margin:0;text-align:right}.purchase-detail-body .purchase-steps p{grid-column:1/-1;font-size:11px;line-height:1.5;margin:4px 0 0}
}

.purchase-reason-field{display:grid;gap:7px;font-size:12px;color:var(--muted)}.purchase-rich-toolbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.purchase-rich-toolbar button{display:grid;place-items:center;width:29px;height:29px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:5px;cursor:pointer}.purchase-rich-toolbar button span{width:13px;height:13px;border-radius:50%}.purchase-rich-editor{min-height:100px;padding:12px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);font-size:13px;line-height:1.6;overflow-wrap:anywhere}.purchase-rich-editor:focus{outline:2px solid var(--accent);outline-offset:1px}.purchase-rich-editor p{margin:0 0 8px}.purchase-detail-reason :is(p,div){overflow-wrap:anywhere}.purchase-detail-reason>p :is(p,div){margin:0 0 8px}

.purchase-reason-content{font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.purchase-reason-content :is(p,div){margin:0 0 8px}.purchase-reason-content :is(p,div):last-child{margin-bottom:0}

@media(min-width:801px){.purchase-detail-body .purchase-steps{display:flex;flex-wrap:wrap;gap:8px;padding:0;border:0;background:none}.purchase-detail-body .purchase-steps li{display:flex;align-items:flex-start;flex:1 1 190px;max-width:calc(50% - 4px);min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:color-mix(in srgb,var(--accent) 3%,var(--surface))}.purchase-detail-body .purchase-steps li:last-child{border-bottom:1px solid var(--line)}.purchase-detail-body .purchase-steps li>div{display:flex;flex-direction:column;align-items:flex-start;gap:3px}.purchase-detail-body .purchase-steps small{text-align:left;line-height:1.4}.purchase-detail-body .purchase-steps p{margin:2px 0 0}.purchase-detail-body .purchase-steps li.approved{border-color:color-mix(in srgb,#447a61 30%,var(--line))}}

@media(min-width:801px){.purchase-detail-body .purchase-steps{gap:10px 0}.purchase-detail-body .purchase-steps li,.purchase-detail-body .purchase-steps li.approved,.purchase-detail-body .purchase-steps li:last-child{flex:0 1 auto;max-width:100%;padding:4px 0;border:0;border-radius:0;background:none;gap:7px}.purchase-detail-body .purchase-steps li+li:before{content:'→';align-self:center;color:var(--muted);font-size:15px;padding:0 12px}.purchase-detail-body .purchase-steps li>span{width:18px;height:18px;font-size:9px}.purchase-detail-body .purchase-steps strong{font-size:11px;line-height:18px}.purchase-detail-body .purchase-steps small{font-size:10px}.purchase-detail-body .purchase-steps li>div{gap:1px}}

@media(min-width:801px){.purchase-detail-body .purchase-detail-facts{padding:9px 12px;border-radius:7px}.purchase-detail-body .purchase-detail-facts>div{padding:0 12px;gap:4px}.purchase-detail-body .purchase-detail-facts span{font-size:10px;line-height:15px}.purchase-detail-body .purchase-detail-facts strong{font-size:12px;line-height:18px}}

.purchase-detail-number{font-weight:400}.purchase-detail-top>small>strong{font-weight:600;color:var(--ink)}

@media(min-width:801px){dialog:has(.purchase-detail-body)>.modalhead{background:linear-gradient(115deg,color-mix(in srgb,var(--accent) 10%,var(--surface)),color-mix(in srgb,var(--accent) 4%,var(--surface)));border-bottom:1px solid color-mix(in srgb,var(--accent) 20%,var(--line));box-shadow:inset 3px 0 color-mix(in srgb,var(--accent) 65%,var(--line))}}
.purchase-detail-top>.purchase-detail-context{display:flex;flex-direction:column;align-items:flex-start;gap:5px;line-height:1.5}.purchase-detail-context strong{font-weight:600;color:var(--ink)}

.purchase-section-emoji{display:inline-block;font-size:13px;line-height:1;margin-right:7px;vertical-align:baseline}.purchase-detail-body>h3{display:flex;align-items:center;gap:0}.purchase-detail-body .purchase-detail-reason h3{display:flex;align-items:center}

@media screen and (min-width:801px){.visitor-main-chart>.cardhead,.visitor-chart-grid>.card>.cardhead{min-height:0;padding:12px 16px;background:color-mix(in srgb,var(--accent) 8%,var(--surface));border-bottom:1px solid var(--line)}.visitor-main-chart>.cardhead h2,.visitor-chart-grid>.card>.cardhead h2{font-size:16px;margin:0}.visitor-main-chart>.cardhead p,.visitor-chart-grid>.card>.cardhead p{font-size:12px;line-height:18px;margin:4px 0 0}}

.purchase-detail-body .purchase-steps{display:block!important;padding:0!important;border:0!important}.purchase-detail-body .purchase-steps li,.purchase-detail-body .purchase-steps li.approved,.purchase-detail-body .purchase-steps li:last-child{display:flex;max-width:none;width:100%;box-sizing:border-box;padding:10px 0;border:0;border-bottom:1px solid var(--line);background:none;border-radius:0}.purchase-detail-body .purchase-steps li:last-child{border-bottom:0}.purchase-detail-body .purchase-steps li+li:before{display:none}.purchase-detail-body .purchase-steps li>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;width:100%;min-width:0}.purchase-detail-body .purchase-steps small{text-align:right}.purchase-detail-body .purchase-steps .purchase-step-note{grid-column:1/-1;margin:2px 0 0;font-size:11px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted)}.purchase-detail-body .purchase-steps .purchase-step-note strong{font-size:inherit;font-weight:600;color:var(--ink)}@media(max-width:600px){.purchase-detail-body .purchase-steps li>div{grid-template-columns:1fr}.purchase-detail-body .purchase-steps small{text-align:left}}

.rm-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.rm-toolbar .leave-hub-nav{margin:0;flex:1}.rm-filters{display:flex;gap:10px}.rm-filters select{width:190px}.rm-filters input{width:230px}.rm-filters input,.rm-filters select{min-height:44px;padding:10px 14px;border:1px solid var(--line,#e4e3dc);border-radius:12px;background:var(--surface,#fff);color:inherit;font:inherit}.rm-templates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px}.rm-template{display:flex;align-items:flex-start;flex-wrap:wrap;gap:10px;padding:20px;border:1px solid var(--line,#e7e5de);border-radius:16px;text-align:left;background:var(--surface,#fff);color:inherit;font:inherit;cursor:pointer}.rm-template span{font-size:24px}.rm-template small{width:100%;font-size:13px}.rm-template:disabled{opacity:.55;cursor:default}.rm-list .panelhead{display:flex;align-items:center;justify-content:space-between;padding:22px 26px;gap:14px}.rm-list h2{margin:0}.rm-list small,.rm-history small{display:block;font-size:13px;line-height:1.6;color:var(--muted,#89918a)}.rm-list th+th,.rm-list td+td,.rm-history th+th,.rm-history td+td{border-left:1px solid var(--line,#ecebe6)}.rm-list td{vertical-align:middle;padding:20px}.rm-title{padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:700;text-align:left;cursor:pointer}.rm-actions{display:flex;gap:6px}.rm-icon{width:34px;height:34px;border:1px solid var(--line,#e7e3d9);border-radius:9px;background:var(--surface,#f8f7f3);cursor:pointer}.rm-status{font-size:13px;padding:6px 10px;border-radius:8px;background:#edf4ef;color:#48785b}.rm-status.paused{background:#fff3dc;color:#9b762b}.rm-status.completed{background:#edf0f4;color:#657284}.rm-empty{text-align:center;padding:40px!important}.rm-heartbeat{font-size:13px;color:var(--muted,#89918a);margin:16px 2px}.rm-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.rm-form label:not(.rm-check){display:block;margin-bottom:18px}.rm-form input:not([type=checkbox]),.rm-form select,.rm-form textarea{width:100%;margin-top:8px}.rm-check{display:flex;align-items:center;gap:10px;font-weight:400;padding:10px 0}.rm-check input[type=checkbox]{width:19px;height:19px;flex:none;margin:0}.rm-check small{margin-left:auto;font-size:12px}.rm-choices{max-height:230px;overflow:auto;border:1px solid var(--line,#ecebe6);border-radius:12px;padding:8px 14px}.rm-note{font-size:13px;color:var(--muted,#89918a);line-height:1.7}.rm-form [hidden]{display:none!important}.rm-list .tablewrap{overflow:auto}.rm-list table{min-width:820px;width:100%}.rm-history table{width:100%}.rm-list .badge{font-size:13px}.rm-template strong{font-size:15px}
@media(max-width:1000px){.rm-toolbar{flex-wrap:wrap}.rm-toolbar .leave-hub-nav{flex-basis:100%}.rm-filters{width:100%}.rm-filters input{flex:1;min-width:0}.rm-templates{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.rm-head{align-items:flex-start!important}.rm-head .actions{flex-wrap:wrap}.rm-form-grid{grid-template-columns:1fr}.rm-filters select{width:42%}.rm-templates{gap:8px}.rm-template{padding:14px}.rm-list .panelhead{align-items:flex-start;flex-direction:column}.rm-check{flex-wrap:wrap}.rm-check small{margin-left:29px}.rm-toolbar .leave-hub-nav{overflow:auto;white-space:nowrap}}

.rm-form{font-size:14px;display:block}.rm-form label{font-size:14px}.rm-form label:not(.rm-check){margin-bottom:16px}.rm-form h3{margin:14px 0}.rm-form h4{margin:20px 0 8px}.rm-head .actions{display:flex;gap:10px}.rm-form .rm-form-grid{align-items:start}dialog:has(#reminder-form){width:min(660px,calc(100vw - 30px))}

.rm-description{margin:0 0 16px}.rm-description summary{font-size:14px;font-weight:600;cursor:pointer;color:var(--muted)}.rm-description textarea{min-height:62px}.rm-filters .rm-check{font-size:13px;display:flex;white-space:nowrap;gap:6px}

.rm-mall-selection{margin:0 0 16px;border:1px solid var(--line);border-radius:12px;padding:10px 14px;max-height:210px;overflow:auto}.rm-mall-selection legend{font-weight:600;padding:0 5px}.rm-form [data-rm-recipient-mall]+[data-rm-recipient-mall]{border-top:1px solid var(--line);margin-top:20px;padding-top:10px}

.rm-activity-history{margin-top:24px}.rm-activity-filters,.rm-activity-footer{display:flex;gap:8px;padding:14px 22px;align-items:center;flex-wrap:wrap}.rm-activity-filters .btn{font-size:13px;padding:8px 12px;min-height:36px}.rm-activity-footer{justify-content:space-between}.rm-activity-footer small{max-width:70%}.rm-status.failed,.rm-status.uncertain{background:#fff0ea;color:#a35240}.rm-status.blocked,.rm-status.queued,.rm-status.sending{background:#fff5df;color:#97702d}.rm-status.cancelled{background:#eeeff1;color:#768086}

/* Clear, theme-aware grid across reminder lists and delivery history. */
html .rm-list .tablewrap table,html .rm-history .tablewrap table{border-collapse:collapse;border:1px solid color-mix(in srgb,var(--ink) 18%,var(--surface))}
html .rm-list .tablewrap table tr>th,html .rm-list .tablewrap table tr>td,html .rm-history .tablewrap table tr>th,html .rm-history .tablewrap table tr>td{border:1px solid color-mix(in srgb,var(--ink) 18%,var(--surface))}
