/* Light styles retain their literal fallbacks. Dark colors apply on screen only,
   so printing remains light. Auto without JavaScript follows the OS. */
/* #5181af with 35% black (each sRGB channel x .65) = #355472. */
:root { color-scheme: light; --sidebar-lapis:#355472; --sidebar-ink:#f1f5fa;
  --nav-hover-bg:#263f59; --nav-active-bg:#f1f5fa; --nav-active-ink:#152e4a;
  --nav-focus:#ffe39a; --nav-divider:#7890a8; }
.app-display-control { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font:14px/1.5 var(--app-font, system-ui); margin:12px 0; }
.app-display-control[hidden] { display:none; }
.app-display-control select { font:inherit; min-height:44px; max-width:100%; border:1px solid var(--tone-b5cee8,#b5cee8); border-radius:8px; padding:8px; color:var(--tone-152e4a,#152e4a); background:var(--tone-ffffff,#ffffff); }
.app-display-control select:focus-visible { outline:3px solid var(--tone-0066ff,#0066ff); outline-offset:3px; }
@media screen {
html[data-theme="dark"] {
  --tone-0066ff: #72b5ff;
  --tone-102b50: #e0edff;
  --tone-102b5004: #e0edff04;
  --tone-102b5026: #e0edff26;
  --tone-102b5033: #e0edff33;
  --tone-103860: #97b9da;
  --tone-132f4d: #a0bede;
  --tone-13385e: #96b8da;
  --tone-142f54: #9cb7dc;
  --tone-14395e: #96b8da;
  --tone-14533a: #9cdcc3;
  --tone-152e4a: #dce7f3;
  --tone-15583f: #99dbc2;
  --tone-16385b: #96b8da;
  --tone-163e69: #8eb1d7;
  --tone-166750: #8fd8c3;
  --tone-173457: #98b6db;
  --tone-173b62: #92b4d9;
  --tone-174d88: #9dcbff;
  --tone-186447: #90d8bc;
  --tone-193e65: #8fb2d8;
  --tone-193e6526: #8fb2d826;
  --tone-203f65: #8bacd6;
  --tone-20476f: #85acd4;
  --tone-205d3e: #8fd8b3;
  --tone-224f87: #759dcf;
  --tone-234c75: #7fa9d2;
  --tone-2479c9: #4d88c0;
  --tone-26619b: #6799ca;
  --tone-27734b: #7ed2a6;
  --tone-28588f: #6d99cc;
  --tone-31597f: #75a0ca;
  --tone-334e6b: #87a5c6;
  --tone-344c68: #8aa5c4;
  --tone-344e6a: #88a5c5;
  --tone-365170: #83a1c3;
  --tone-385878: #7c9fc2;
  --tone-39764d: #7ec194;
  --tone-405975: #809bba;
  --tone-425777: #7f96b8;
  --tone-4382c4: #417bb8;
  --tone-456991: #688eb7;
  --tone-466c92: #688fb6;
  --tone-4c6077: #8196ae;
  --tone-52769b: #6286ac;
  --tone-586e86: #758ca4;
  --tone-596576: #8490a2;
  --tone-60430b: #dbc59a;
  --tone-653e08: #dbbf99;
  --tone-684207: #dbc098;
  --tone-69a1df: #336091;
  --tone-704600: #dac197;
  --tone-718096: #6a798f;
  --tone-71859c: #647890;
  --tone-7296b9: #496e93;
  --tone-8096b4: #4f6686;
  --tone-81a4c6: #3d6388;
  --tone-89a2c2: #425d80;
  --tone-8ab5e2: #2c537c;
  --tone-8b2630: #cd707a;
  --tone-8c202c: #ce737d;
  --tone-8da6c7: #3e597d;
  --tone-92212d: #cd6f79;
  --tone-93afce: #375779;
  --tone-941f2d: #cd6f7a;
  --tone-94accb: #3a5578;
  --tone-9b2635: #ca6774;
  --tone-9b7417: #cdb170;
  --tone-9bb6d4: #325174;
  --tone-a04b66: #b35c78;
  --tone-a46105: #cfa975;
  --tone-a56810: #cca66e;
  --tone-a62632: #c7606a;
  --tone-a72c39: #c65c67;
  --tone-a76c16: #caa369;
  --tone-a83640: #c4565f;
  --tone-a8bfd6: #314d68;
  --tone-ad7300: #ceaf73;
  --tone-adcebb: #3a624b;
  --tone-afcfbd: #3a604a;
  --tone-b26100: #cda270;
  --tone-b4cce5: #224162;
  --tone-b5cbe3: #244160;
  --tone-b5cee8: #21405f;
  --tone-b7cee6: #21405f;
  --tone-b88129: #c39854;
  --tone-b8c9df: #293f5c;
  --tone-b8cce1: #27415d;
  --tone-bdcfe3: #263e59;
  --tone-bdd1e7: #213c5a;
  --tone-bdd5ee: #1f3a57;
  --tone-c4dcf3: #1c3650;
  --tone-c78b19: #c39d55;
  --tone-c7d3e2: #29394e;
  --tone-c8d5e6: #24374f;
  --tone-c8d7e8: #213750;
  --tone-c9d7e5: #25394e;
  --tone-c9d7e8: #22364f;
  --tone-c9d8eb: #1e3450;
  --tone-c9d9eb: #1e3650;
  --tone-cad9eb: #1e344f;
  --tone-cbd8e8: #22354d;
  --tone-cfdded: #1c324b;
  --tone-d3dfed: #1d3147;
  --tone-d3e5cc: #304b26;
  --tone-d4deea: #223245;
  --tone-d5b36c: #967635;
  --tone-d5dfec: #1f2f45;
  --tone-d5e5f5: #182e45;
  --tone-d6e0ed: #1e2f44;
  --tone-d6e2f1: #192d46;
  --tone-d6e7f8: #172d42;
  --tone-dbe6f4: #172a42;
  --tone-dca9b0: #692b33;
  --tone-dce8f5: #172b40;
  --tone-dce8f6: #162a40;
  --tone-dceafa: #16283d;
  --tone-ddc79f: #725829;
  --tone-deebf9: #15283d;
  --tone-e0ecf8: #15293c;
  --tone-e1e9f4: #16273d;
  --tone-e1edfa: #15273a;
  --tone-e4ebf4: #18273a;
  --tone-e4effc: #142438;
  --tone-e5b7bc: #5f2229;
  --tone-e5f4e9: #183921;
  --tone-e6b8bf: #5f212b;
  --tone-e6eef9: #142338;
  --tone-e6eff9: #142538;
  --tone-e7edf5: #172537;
  --tone-e7eff9: #142438;
  --tone-e7f2e2: #243a1a;
  --tone-e7f3ee: #1b352a;
  --tone-e8eff8: #142338;
  --tone-e8f0f9: #132437;
  --tone-e8f0fa: #132336;
  --tone-e9dfbd: #5a4d20;
  --tone-e9eff7: #142337;
  --tone-eaf0f7: #142436;
  --tone-eaf1f9: #132336;
  --tone-eaf1fa: #132235;
  --tone-eaf1fb: #122035;
  --tone-edf3fa: #122133;
  --tone-edf3fb: #122033;
  --tone-edf4fc: #122132;
  --tone-edf5ff: #111f30;
  --tone-edf7f1: #163221;
  --tone-eed7de: #441d29;
  --tone-eef1f6: #19212f;
  --tone-eef4fb: #122132;
  --tone-eff5ff: #111c2f;
  --tone-f0f1f3: #202328;
  --tone-f0f4f9: #111923;
  --tone-f0f6fc: #112130;
  --tone-f1f6fd: #111d2f;
  --tone-f2f6fc: #111d2f;
  --tone-f3f6fb: #111c2f;
  --tone-f3f7fc: #101e2f;
  --tone-f4f7fc: #101b2e;
  --tone-f5f8fc: #101d2d;
  --tone-f8fafc: #121d29;
  --tone-f8fbff: #0f1a2a;
  --tone-faf0cd: #463c19;
  --tone-fbecee: #331216;
  --tone-fbecef: #331219;
  --tone-fbfdf9: #202f40;
  --tone-fbfdfb: #111923;
  --tone-fde7e7: #351313;
  --tone-ffc168: #7f5d2d;
  --tone-ffe8eb: #331216;
  --tone-fff0f0: #2f1010;
  --tone-fff0f1: #2f1012;
  --tone-fff1cb: #453918;
  --tone-fff3d4: #3f3416;
  --tone-fff3d6: #3e3216;
  --tone-fff8e8: #332912;
  --tone-fff8eb: #322611;
  --tone-fffaf0: #2f2510;
  --tone-fffafa: #290e0e;
  --tone-fffcfc: #202f40;
  --tone-fffdfd: #111923;
  --tone-fffef9: #202f40;
  --tone-fffefb: #111923;
  --tone-ffffff: #1b2735;
  --sidebar-lapis:#142333; --sidebar-ink:#e2eaf3;
  --nav-hover-bg:#253d55; --nav-active-bg:#304c69; --nav-active-ink:#f1f5fa;
  --nav-focus:#ffe39a; --nav-divider:#536b84;
  --surface-page:#111923; --surface-panel:#1b2735; --surface-soft:#202f40;
  --action-bg:#315c86; --action-hover-bg:#3c6c99; --action-ink:#f5f8fc; --section-bg:#253d55;
  --tone-4c6077:#aabbd0; --tone-586e86:#aabbd0;
  --tone-a62632:#ffadb5; --tone-a72c39:#ffadb5; --brand-gold:#ffe39a; --brand-public-gold:#ffe39a; --brand-public-hover:#fff0ba;
  color-scheme: dark;
  --body-bg: #151e2b; --body-fg: #dce7f3;
  --body-quiet-color: #bac8d9; --body-medium-color: #cbd8e8; --body-loud-color: #edf4ff;
  --primary: #254b73; --primary-fg: #edf4ff; --secondary: #1c3550;
  --header-color: #edf4ff; --header-link-color: #edf4ff; --accent: #edf4ff;
  --link-fg: #9dcbff; --link-hover-color: #c0dfff; --link-selected-fg: #b8d8ff;
  --hairline-color: #35445a; --border-color: #46566b;
  --error-fg: #ffafb7; --message-success-bg: #1d392b; --message-warning-bg: #42351c; --message-error-bg: #42242b;
  --darkened-bg: #1e2c3e; --selected-bg: #253b54; --selected-row: #273f54;
  --breadcrumbs-bg: #1e2c3e; --breadcrumbs-link-fg: #b8d8ff;
  --close-button-bg: #43546a; --close-button-hover-bg: #566a82;
}
}
@media screen and (prefers-color-scheme: dark) {
html:not([data-theme]) {
  --tone-0066ff: #72b5ff;
  --tone-102b50: #e0edff;
  --tone-102b5004: #e0edff04;
  --tone-102b5026: #e0edff26;
  --tone-102b5033: #e0edff33;
  --tone-103860: #97b9da;
  --tone-132f4d: #a0bede;
  --tone-13385e: #96b8da;
  --tone-142f54: #9cb7dc;
  --tone-14395e: #96b8da;
  --tone-14533a: #9cdcc3;
  --tone-152e4a: #dce7f3;
  --tone-15583f: #99dbc2;
  --tone-16385b: #96b8da;
  --tone-163e69: #8eb1d7;
  --tone-166750: #8fd8c3;
  --tone-173457: #98b6db;
  --tone-173b62: #92b4d9;
  --tone-174d88: #9dcbff;
  --tone-186447: #90d8bc;
  --tone-193e65: #8fb2d8;
  --tone-193e6526: #8fb2d826;
  --tone-203f65: #8bacd6;
  --tone-20476f: #85acd4;
  --tone-205d3e: #8fd8b3;
  --tone-224f87: #759dcf;
  --tone-234c75: #7fa9d2;
  --tone-2479c9: #4d88c0;
  --tone-26619b: #6799ca;
  --tone-27734b: #7ed2a6;
  --tone-28588f: #6d99cc;
  --tone-31597f: #75a0ca;
  --tone-334e6b: #87a5c6;
  --tone-344c68: #8aa5c4;
  --tone-344e6a: #88a5c5;
  --tone-365170: #83a1c3;
  --tone-385878: #7c9fc2;
  --tone-39764d: #7ec194;
  --tone-405975: #809bba;
  --tone-425777: #7f96b8;
  --tone-4382c4: #417bb8;
  --tone-456991: #688eb7;
  --tone-466c92: #688fb6;
  --tone-4c6077: #8196ae;
  --tone-52769b: #6286ac;
  --tone-586e86: #758ca4;
  --tone-596576: #8490a2;
  --tone-60430b: #dbc59a;
  --tone-653e08: #dbbf99;
  --tone-684207: #dbc098;
  --tone-69a1df: #336091;
  --tone-704600: #dac197;
  --tone-718096: #6a798f;
  --tone-71859c: #647890;
  --tone-7296b9: #496e93;
  --tone-8096b4: #4f6686;
  --tone-81a4c6: #3d6388;
  --tone-89a2c2: #425d80;
  --tone-8ab5e2: #2c537c;
  --tone-8b2630: #cd707a;
  --tone-8c202c: #ce737d;
  --tone-8da6c7: #3e597d;
  --tone-92212d: #cd6f79;
  --tone-93afce: #375779;
  --tone-941f2d: #cd6f7a;
  --tone-94accb: #3a5578;
  --tone-9b2635: #ca6774;
  --tone-9b7417: #cdb170;
  --tone-9bb6d4: #325174;
  --tone-a04b66: #b35c78;
  --tone-a46105: #cfa975;
  --tone-a56810: #cca66e;
  --tone-a62632: #c7606a;
  --tone-a72c39: #c65c67;
  --tone-a76c16: #caa369;
  --tone-a83640: #c4565f;
  --tone-a8bfd6: #314d68;
  --tone-ad7300: #ceaf73;
  --tone-adcebb: #3a624b;
  --tone-afcfbd: #3a604a;
  --tone-b26100: #cda270;
  --tone-b4cce5: #224162;
  --tone-b5cbe3: #244160;
  --tone-b5cee8: #21405f;
  --tone-b7cee6: #21405f;
  --tone-b88129: #c39854;
  --tone-b8c9df: #293f5c;
  --tone-b8cce1: #27415d;
  --tone-bdcfe3: #263e59;
  --tone-bdd1e7: #213c5a;
  --tone-bdd5ee: #1f3a57;
  --tone-c4dcf3: #1c3650;
  --tone-c78b19: #c39d55;
  --tone-c7d3e2: #29394e;
  --tone-c8d5e6: #24374f;
  --tone-c8d7e8: #213750;
  --tone-c9d7e5: #25394e;
  --tone-c9d7e8: #22364f;
  --tone-c9d8eb: #1e3450;
  --tone-c9d9eb: #1e3650;
  --tone-cad9eb: #1e344f;
  --tone-cbd8e8: #22354d;
  --tone-cfdded: #1c324b;
  --tone-d3dfed: #1d3147;
  --tone-d3e5cc: #304b26;
  --tone-d4deea: #223245;
  --tone-d5b36c: #967635;
  --tone-d5dfec: #1f2f45;
  --tone-d5e5f5: #182e45;
  --tone-d6e0ed: #1e2f44;
  --tone-d6e2f1: #192d46;
  --tone-d6e7f8: #172d42;
  --tone-dbe6f4: #172a42;
  --tone-dca9b0: #692b33;
  --tone-dce8f5: #172b40;
  --tone-dce8f6: #162a40;
  --tone-dceafa: #16283d;
  --tone-ddc79f: #725829;
  --tone-deebf9: #15283d;
  --tone-e0ecf8: #15293c;
  --tone-e1e9f4: #16273d;
  --tone-e1edfa: #15273a;
  --tone-e4ebf4: #18273a;
  --tone-e4effc: #142438;
  --tone-e5b7bc: #5f2229;
  --tone-e5f4e9: #183921;
  --tone-e6b8bf: #5f212b;
  --tone-e6eef9: #142338;
  --tone-e6eff9: #142538;
  --tone-e7edf5: #172537;
  --tone-e7eff9: #142438;
  --tone-e7f2e2: #243a1a;
  --tone-e7f3ee: #1b352a;
  --tone-e8eff8: #142338;
  --tone-e8f0f9: #132437;
  --tone-e8f0fa: #132336;
  --tone-e9dfbd: #5a4d20;
  --tone-e9eff7: #142337;
  --tone-eaf0f7: #142436;
  --tone-eaf1f9: #132336;
  --tone-eaf1fa: #132235;
  --tone-eaf1fb: #122035;
  --tone-edf3fa: #122133;
  --tone-edf3fb: #122033;
  --tone-edf4fc: #122132;
  --tone-edf5ff: #111f30;
  --tone-edf7f1: #163221;
  --tone-eed7de: #441d29;
  --tone-eef1f6: #19212f;
  --tone-eef4fb: #122132;
  --tone-eff5ff: #111c2f;
  --tone-f0f1f3: #202328;
  --tone-f0f4f9: #111923;
  --tone-f0f6fc: #112130;
  --tone-f1f6fd: #111d2f;
  --tone-f2f6fc: #111d2f;
  --tone-f3f6fb: #111c2f;
  --tone-f3f7fc: #101e2f;
  --tone-f4f7fc: #101b2e;
  --tone-f5f8fc: #101d2d;
  --tone-f8fafc: #121d29;
  --tone-f8fbff: #0f1a2a;
  --tone-faf0cd: #463c19;
  --tone-fbecee: #331216;
  --tone-fbecef: #331219;
  --tone-fbfdf9: #202f40;
  --tone-fbfdfb: #111923;
  --tone-fde7e7: #351313;
  --tone-ffc168: #7f5d2d;
  --tone-ffe8eb: #331216;
  --tone-fff0f0: #2f1010;
  --tone-fff0f1: #2f1012;
  --tone-fff1cb: #453918;
  --tone-fff3d4: #3f3416;
  --tone-fff3d6: #3e3216;
  --tone-fff8e8: #332912;
  --tone-fff8eb: #322611;
  --tone-fffaf0: #2f2510;
  --tone-fffafa: #290e0e;
  --tone-fffcfc: #202f40;
  --tone-fffdfd: #111923;
  --tone-fffef9: #202f40;
  --tone-fffefb: #111923;
  --tone-ffffff: #1b2735;
  --sidebar-lapis:#142333; --sidebar-ink:#e2eaf3;
  --nav-hover-bg:#253d55; --nav-active-bg:#304c69; --nav-active-ink:#f1f5fa;
  --nav-focus:#ffe39a; --nav-divider:#536b84;
  --surface-page:#111923; --surface-panel:#1b2735; --surface-soft:#202f40;
  --action-bg:#315c86; --action-hover-bg:#3c6c99; --action-ink:#f5f8fc; --section-bg:#253d55;
  --tone-4c6077:#aabbd0; --tone-586e86:#aabbd0;
  --tone-a62632:#ffadb5; --tone-a72c39:#ffadb5; --brand-gold:#ffe39a; --brand-public-gold:#ffe39a; --brand-public-hover:#fff0ba;
  color-scheme: dark;
  --body-bg: #151e2b; --body-fg: #dce7f3;
  --body-quiet-color: #bac8d9; --body-medium-color: #cbd8e8; --body-loud-color: #edf4ff;
  --primary: #254b73; --primary-fg: #edf4ff; --secondary: #1c3550;
  --header-color: #edf4ff; --header-link-color: #edf4ff; --accent: #edf4ff;
  --link-fg: #9dcbff; --link-hover-color: #c0dfff; --link-selected-fg: #b8d8ff;
  --hairline-color: #35445a; --border-color: #46566b;
  --error-fg: #ffafb7; --message-success-bg: #1d392b; --message-warning-bg: #42351c; --message-error-bg: #42242b;
  --darkened-bg: #1e2c3e; --selected-bg: #253b54; --selected-row: #273f54;
  --breadcrumbs-bg: #1e2c3e; --breadcrumbs-link-fg: #b8d8ff;
  --close-button-bg: #43546a; --close-button-hover-bg: #566a82;
}
}
@media print { .app-display-control { display:none!important; } }

.app-theme-button { flex:0 0 44px; width:44px; height:44px; display:grid; place-items:center; color:var(--theme-button-ink,currentColor); background:transparent; border:0; border-radius:50%; cursor:pointer; padding:0; }
.app-theme-button svg { width:22px; height:22px; }
.app-theme-button [data-icon], .app-theme-button[hidden] { display:none; }
.app-theme-button[data-mode="auto"] [data-icon="auto"],
.app-theme-button[data-mode="light"] [data-icon="light"],
.app-theme-button[data-mode="dark"] [data-icon="dark"] { display:inline; }
.app-theme-button:hover { box-shadow:inset 0 0 0 1px currentColor; }
.app-theme-button:focus-visible { outline:2px solid currentColor; outline-offset:-2px; }
@media print { .app-theme-button { display:none; } }

/* Navigation states have paired text/surface colors, independent of work area. */
.app-sidebar .app-nav-group>summary{color:var(--sidebar-ink)}
.app-sidebar .app-nav-group{border-bottom-color:var(--nav-divider)}
.app-sidebar .app-nav-links a:hover,.app-sidebar .app-nav-group>summary:hover,
body[class*="area-"] .app-sidebar .app-nav-group[open]>summary{
  background:var(--nav-hover-bg);color:var(--sidebar-ink)}
body[class*="area-"] .app-sidebar .app-nav-links a[aria-current=page]{
  background:var(--nav-active-bg);color:var(--nav-active-ink)}
.app-sidebar a:focus-visible,.app-sidebar button:focus-visible,.app-sidebar summary:focus-visible{
  outline-color:var(--nav-focus)}
/* Dark backgrounds do not reuse the pale heading/link tokens as fills. */
.app-admin .module h2,.app-admin .module caption,.app-admin #changelist-filter h2{
  background:var(--section-bg,var(--tone-102b50,#102b50));color:var(--action-ink,var(--tone-ffffff,#fff))}
.app-admin .module caption a{color:var(--action-ink,var(--tone-ffffff,#fff))}
.button:not(.secondary),button[type="submit"],.app-admin .object-tools a{
  background:var(--action-bg,var(--tone-174d88,#174d88));color:var(--action-ink,var(--tone-ffffff,#fff))}

.button:not(.secondary):hover,button[type="submit"]:hover,.app-admin .object-tools a:hover{
  background:var(--action-hover-bg,var(--tone-103860,#103860));color:var(--action-ink,var(--tone-ffffff,#fff))}
