/* Design tokens and element defaults shared by every page. */

:root {
  color-scheme: light;

  --font-sans: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --blue: #1a73e8;
  --blue-strong: #1765cc;
  --blue-soft: #4285f4;
  --blue-wash: #e8f0fe;
  --blue-track: #d2e3fc;

  --ink: #202124;
  --ink-2: #5f6368;
  --ink-3: #80868b;

  --line: #dadce0;
  --grid: #e8eaed;
  --field: #f1f3f4;
  --page: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f8f9fa;
  --hover: rgb(32 33 36 / 6%);

  --good: #137333;
  --bad: #c5221f;
  --good-wash: #e6f4ea;
  --bad-wash: #fce8e6;
  --neutral: #5f6368;

  /* How time arrived, on the work diary's bars, dots and marks. */
  --diary-timed: #1e8e3e;
  --diary-manual: #12b5cb;
  --diary-overtime: #d93025;

  --series-current: var(--blue);
  --series-previous: #9aa0a6;

  --shadow-raised: 0 1px 2px rgb(60 64 67 / 30%), 0 2px 6px 2px rgb(60 64 67 / 15%);

  --radius: 8px;
  --app-bar-h: 64px;
  --rail-w: 72px;
  --rail-expanded-w: 288px;
  --subnav-w: 256px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 14px/20px var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Material Symbols icon font */
.ms {
  display: inline-block;
  flex-shrink: 0;
  font-family: "Material Symbols Outlined";
  font-size: 24px;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  user-select: none;
}

.ms--fill {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.ms--sm {
  font-size: 20px;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
}

.ms--xs {
  font-size: 16px;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
  }
}
