:root {
 --app-bar:#18334f; --bar-hover:#2c4867; --on-bar:#dce8f8;
 --accent:#245ca2; --accent-hover:#194a86; --tint:#e8f0fb;
 --bg:#f4f6f9; --paper:#fff; --ink:#192d43; --sub:#526477;
 --line:#d8e1eb; --control-line:#adbdce; --control-focus:var(--accent);
}
/* The header, navigation and page have separate, non-overlapping grid areas. */
.nav-shell {
 --rail-space:0px;
 display:grid;
 grid-template-columns:var(--rail-space) minmax(0,1fr);
 grid-template-rows:auto minmax(0,1fr);
 grid-template-areas:"header header" "rail page";
}
.nav-shell.nav-open {--rail-space:var(--desk-rail,214px)}
.nav-shell>.system-header {grid-area:header;position:sticky;top:0;z-index:4}
.nav-shell>#system-navigation {grid-area:rail;min-width:0;overflow:auto}
.nav-shell>#system-navigation[hidden] {display:none!important}
.nav-shell>.system-page {grid-area:page;min-width:0;min-height:0}
.system-nav-toggle {
 display:inline-grid;place-items:center;flex:none;width:40px;height:40px;
 padding:0;border:1px solid transparent;border-radius:7px;background:transparent;color:inherit;cursor:pointer;
}
.system-nav-toggle:hover,.system-nav-toggle[aria-expanded="true"] {background:var(--bar-hover);color:white}
.system-nav-toggle:focus-visible {outline:3px solid var(--control-focus);outline-offset:2px}
@media(max-width:760px){
 .nav-shell {grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:"header" "rail" "page"}
 .nav-shell.nav-open {--rail-space:0px}
 .nav-shell>.system-header {position:relative}
 .system-nav-toggle {width:44px;height:44px}
}
@media print {
 .nav-shell {display:block!important}
 .nav-shell>.system-header,.nav-shell>#system-navigation {display:none!important}
}

@media (max-width:760px), (pointer:coarse) {
 /* Disable double-tap magnification while keeping scrolling and pinch zoom. */
 html, :where(a, button, input, select, textarea, label, summary, [role="button"]) {
  touch-action:manipulation;
 }
 /* Mobile Safari magnifies small editable fields when the keyboard opens. */
 input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="button"], [type="submit"], [type="reset"], [type="image"], [type="color"], [type="hidden"]),
 select, textarea, [contenteditable="true"], [contenteditable=""], [contenteditable="plaintext-only"] {
  font-size:max(16px, 1rem) !important;
 }
}

/* Android WebView also supplies its own tap tint and focus ring for summary, links and dialogs. */
html.android-client {
 --android-bar-height:64px;-webkit-tap-highlight-color:transparent
}
.system-header,.fm-toolbar,.android-client .android-bar,.android-client .practice-top,.android-client .brand {--control-focus:#ccdef8}
html.android-client :focus {outline:2px solid var(--control-focus);outline-offset:-2px}
html.android-client[data-input-method="keyboard"] :focus {
 outline:2px solid var(--control-focus);outline-offset:-2px
}
html.android-client[data-input-method="pointer"] :focus {outline:none}
html.android-client[data-input-method="pointer"] :is(input,textarea,select):focus:not([aria-invalid="true"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]) {border-color:var(--accent)}

.desk-logo,.brand>.mark,.android-client .android-bar>img {
 filter:grayscale(1) contrast(3.5);mix-blend-mode:screen
}
