:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #ecf7f2;
  background: #061913;
  --bg: #061913;
  --bg-soft: #0a211b;
  --panel: rgba(10, 42, 34, .82);
  --panel-strong: rgba(12, 49, 40, .94);
  --panel-muted: rgba(15, 56, 46, .58);
  --line: rgba(118, 226, 194, .22);
  --line-strong: rgba(118, 226, 194, .44);
  --text: #ecf7f2;
  --muted: #a8bbb4;
  --muted-2: #7e968e;
  --accent: #33d0a5;
  --accent-2: #16ad85;
  --accent-soft: #7cf0cd;
  --danger: #ff8f86;
  --shadow: 0 30px 90px rgba(0, 0, 0, .24);
}





* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(38, 205, 157, .18), transparent 32rem),
    radial-gradient(circle at 102% 36%, rgba(31, 163, 128, .12), transparent 28rem),
    linear-gradient(180deg, #061b16 0%, #071b16 46%, #061511 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 70%);
}

a { color: var(--accent-soft); text-underline-offset: 4px; }
a:hover { color: #a4f8de; }

.account {
  position: relative;
  z-index: 1;
  width: min(92%, 580px);
  margin: 0 auto;
  padding: 32px 0 56px;
}
.account-login { width: min(92%, 980px); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 49px;
  height: 49px;
  place-items: center;
  border: 1px solid rgba(122, 241, 205, .35);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(94, 238, 194, .2), rgba(19, 102, 82, .13));
  box-shadow: inset 0 0 0 6px rgba(62, 211, 167, .08), 0 10px 30px rgba(0, 0, 0, .12);
}
.brand-mark svg {
  width: 33px;
  height: 33px;
  fill: none;
  stroke: #b3ffe7;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-copy { display: block; line-height: 1; }
.brand-copy strong {
  display: block;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -1.5px;
  font-weight: 760;
}
.brand-copy small {
  display: block;
  margin-top: 9px;
  color: #a8bbb4;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3.6px;
}
.header-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--text);
  background: rgba(10, 45, 36, .5);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.header-link svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-link:hover {
  color: var(--text);
  border-color: rgba(124, 240, 205, .7);
  background: rgba(20, 84, 67, .65);
  transform: translateY(-1px);
}

.login-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  align-items: center;
  gap: 36px;
  padding: 58px 10px 42px;
}
.login-hero-copy { max-width: 570px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 19px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b8ddcf;
  background: rgba(7, 38, 30, .58);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-kicker svg {
  width: 15px;
  fill: none;
  stroke: var(--accent-soft);
  stroke-width: 2;
  stroke-linecap: round;
}
.login-hero h1 {
  margin: 0;
  max-width: 580px;
  font-size: clamp(46px, 7.4vw, 76px);
  line-height: .98;
  letter-spacing: -4px;
  font-weight: 780;
}
.login-hero p {
  max-width: 560px;
  margin: 21px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.48;
}
.device-art {
  position: relative;
  justify-self: end;
  width: min(100%, 390px);
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .25));
}
.device-art::before {
  content: "";
  position: absolute;
  inset: 20% 12%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(45, 213, 164, .13);
  filter: blur(45px);
}
.device-art svg { display: block; width: 100%; height: auto; }

.card {
  position: relative;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(13, 52, 42, .92), rgba(8, 32, 26, .96));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(18px);
}
.card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -130px;
  top: -140px;
  border-radius: 50%;
  background: rgba(55, 214, 168, .06);
  pointer-events: none;
}
.login-card {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 38px 48px 36px;
}
.secure-chip {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: -2px 0 18px 24px;
  padding: 9px 12px 9px 9px;
  border: 1px solid rgba(112, 230, 193, .18);
  border-radius: 15px;
  background: rgba(9, 42, 34, .72);
  color: #d8f8ed;
}
.secure-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: rgba(61, 217, 170, .11);
}
.secure-icon svg {
  width: 20px;
  fill: none;
  stroke: var(--accent-soft);
  stroke-width: 2;
  stroke-linejoin: round;
}
.secure-chip strong,
.secure-chip small { display: block; }
.secure-chip strong { font-size: 11px; }
.secure-chip small { margin-top: 2px; color: var(--muted-2); font-size: 9px; }

.card h1 {
  margin: 0 0 9px;
  color: #f3fbf7;
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 760;
  letter-spacing: -1.3px;
}
.card h2 { margin-top: 26px; font-size: 21px; letter-spacing: -.4px; }
.card p,
.card li { color: #b1c4bc; line-height: 1.58; }
.card > h1 + p { margin-top: 0; margin-bottom: 27px; font-size: 13px; }
.card > h1 + p a { font-weight: 700; }
.message {
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px solid rgba(124, 240, 205, .2);
  border-radius: 12px;
  background: rgba(51, 208, 165, .08);
}

.card form p { margin: 0; }
.card label {
  display: block;
  margin: 0 0 8px;
  color: #eaf6f1;
  font-size: 13px;
  font-weight: 700;
}
input:not([type=checkbox]),
select,
textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 0 0 19px;
  padding: 13px 15px;
  border: 1px solid rgba(174, 220, 205, .55);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: rgba(3, 22, 17, .38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input::placeholder,
textarea::placeholder { color: #718780; opacity: 1; }
input:not([type=checkbox]):hover,
select:hover,
textarea:hover { border-color: rgba(174, 220, 205, .78); }
input:not([type=checkbox]):focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: rgba(4, 26, 20, .6);
  box-shadow: 0 0 0 4px rgba(51, 208, 165, .12);
}
input[type=checkbox] {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--accent);
}
.helptext {
  display: block;
  margin: -9px 0 21px;
  color: var(--muted);
  font-size: 12px;
}
.helptext a { font-weight: 650; }
.page-login form p:has(#id_remember) {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 17px;
}
.page-login form p:has(#id_remember) label { margin: 0; font-weight: 600; }
.page-login #id_remember { order: -1; }

button,
.button {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #031a13;
  background: linear-gradient(135deg, #5be6bf, #20bd92 55%, #17a77f);
  box-shadow: 0 12px 34px rgba(19, 172, 130, .14), inset 0 1px 0 rgba(255,255,255,.28);
  font: inherit;
  font-weight: 780;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
/* B3: the global `a { color: var(--accent-soft) }` / `a:hover { color:
   #a4f8de }` rules further up this file have higher effective specificity
   for the `color` property than a bare `.button`/`.button:hover` class
   selector (a pseudo-class + element beats a single class on the `color`
   property's own cascade), so an <a class="button"> (the Microsoft sign-in
   CTA) silently inherited the light hover/focus/active link color on top
   of its own light-on-bright-green background -- ~1.3-2:1 contrast instead
   of the ~12:1 the dark `.button` text color gives. Restating `color`
   explicitly at each interactive state keeps it pinned to the dark,
   accessible value regardless of link-state rules declared elsewhere. */
button:hover,
.button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(19, 172, 130, .18), inset 0 1px 0 rgba(255,255,255,.3);
  color: #031a13;
}
.button:focus-visible { color: #031a13; }
button:active,
.button:active { transform: translateY(0); color: #031a13; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(124, 240, 205, .9);
  outline-offset: 3px;
}
.page-login .card form[action="/accounts/login/"] > button[type=submit] {
  width: 100%;
  margin: 7px 0 0;
  font-size: 15px;
}
.ms-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  margin: 9px 0 0;
  font-size: 15px;
}
.ms-icon {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 2px;
}
.card hr {
  height: 1px;
  margin: 25px 0 15px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(150, 210, 191, .35), transparent);
}
#passkey_login {
  width: 100%;
  margin: 0;
  border: 1px solid rgba(154, 218, 198, .42);
  color: #eaf7f2;
  background: rgba(6, 29, 23, .44);
  box-shadow: none;
}
#passkey_login:hover {
  border-color: rgba(124, 240, 205, .72);
  background: rgba(16, 63, 51, .58);
  filter: none;
}

.trust-grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(125, 211, 185, .13);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a9bdb5;
  font-size: 11px;
  line-height: 1.35;
}
.trust-icon {
  display: grid;
  flex: 0 0 37px;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(88, 224, 183, .16);
  border-radius: 50%;
  background: rgba(51, 208, 165, .08);
}
.trust-icon svg {
  width: 20px;
  fill: none;
  stroke: var(--accent-soft);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 20px;
  margin: 25px 5px;
  color: var(--muted);
  font-size: 12px;
}
.account-nav a { color: #8de6ca; font-weight: 600; }

.download-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  width: min(100%, 820px);
  min-height: 78px;
  margin: 0 auto;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 19px;
  color: #e9f7f2;
  background: linear-gradient(120deg, rgba(13, 60, 48, .78), rgba(8, 35, 28, .78));
  box-shadow: 0 18px 50px rgba(0,0,0,.1);
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.download-cta:hover {
  color: #f3fffb;
  border-color: rgba(115, 236, 200, .48);
  background: linear-gradient(120deg, rgba(16, 78, 61, .86), rgba(10, 45, 36, .86));
  transform: translateY(-1px);
}
.download-cta-icon {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(51, 208, 165, .25), rgba(24, 128, 99, .25));
}
.download-cta-icon svg {
  width: 24px;
  fill: none;
  stroke: #a2f8dd;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.download-cta-copy strong,
.download-cta-copy small { display: block; }
.download-cta-copy strong { font-size: 14px; }
.download-cta-copy small { margin-top: 4px; color: #97aaa3; font-size: 10px; line-height: 1.4; }
.download-cta-arrow { color: var(--accent-soft); font-size: 25px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding: 0 4px;
  color: #70857d;
  font-size: 10px;
  text-align: center;
}

ul.errorlist {
  margin: 0 0 14px;
  padding: 10px 14px 10px 31px;
  border: 1px solid rgba(255, 143, 134, .28);
  border-radius: 12px;
  color: #ffaaa3;
  background: rgba(122, 35, 30, .12);
}
img { max-width: 100%; }

@media (max-width: 780px) {
  .account { width: min(92%, 620px); padding-top: 24px; }
  .account-login { width: min(92%, 660px); }
  .login-hero { grid-template-columns: 1fr; gap: 24px; padding: 48px 2px 30px; }
  .login-hero-copy { max-width: 100%; }
  .login-hero h1 { letter-spacing: -3px; }
  .device-art { justify-self: center; width: min(82%, 360px); margin-top: -8px; }
  .login-card { padding: 30px 28px; }
}

@media (max-width: 520px) {
  .account { width: calc(100% - 34px); padding: 20px 0 42px; }
  .site-header { min-height: 54px; }
  .brand { gap: 10px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-mark svg { width: 27px; height: 27px; }
  .brand-copy strong { font-size: 26px; letter-spacing: -1.2px; }
  .brand-copy small { margin-top: 7px; font-size: 7px; letter-spacing: 2.8px; }
  .header-link { min-height: 38px; padding: 0 11px; font-size: 11px; border-radius: 12px; }
  .header-link span { display: none; }
  .login-hero { padding: 39px 0 25px; gap: 18px; }
  .hero-kicker { margin-bottom: 15px; font-size: 9px; }
  .login-hero h1 { font-size: clamp(44px, 14vw, 62px); line-height: .98; letter-spacing: -2.8px; }
  .login-hero p { margin-top: 16px; font-size: 17px; line-height: 1.48; }
  .device-art { width: min(100%, 330px); margin-top: -2px; }
  .card,
  .login-card { padding: 25px 21px; border-radius: 22px; }
  .secure-chip { float: none; width: fit-content; margin: 0 0 18px; }
  .card h1 { font-size: 31px; }
  input:not([type=checkbox]), select, textarea { min-height: 50px; border-radius: 13px; }
  .trust-grid { grid-template-columns: 1fr; gap: 11px; }
  .trust-item br { display: none; }
  .trust-icon { flex-basis: 34px; width: 34px; height: 34px; }
  .account-nav { gap: 8px 15px; margin: 22px 0; font-size: 11px; }
  .download-cta { min-height: 72px; padding: 13px; border-radius: 17px; }
  .download-cta-icon { width: 42px; height: 42px; }
  .download-cta-copy strong { font-size: 13px; }
  .download-cta-copy small { font-size: 9px; }
  footer { flex-direction: column; align-items: center; gap: 6px; margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Sessions page: one readable block per session instead of a four-column table. */
.account-wide { width: min(92%, 760px); }
.sessions-intro { margin: 0 0 20px; color: var(--muted); }
.session-list { margin: 0 0 24px; padding: 0; list-style: none; }
.session { margin: 0 0 12px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 14px; }
.session-current { border-color: var(--accent); }
.session-device { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; }
.session-badge { padding: 2px 10px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 12px; font-weight: 700; }
.session-facts { margin: 0; display: grid; gap: 4px; }
.session-facts div { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.session-facts dt { min-width: 9.5em; color: var(--muted); }
.session-facts dd { margin: 0; overflow-wrap: anywhere; }
.session-relative { color: var(--muted); }
@media (max-width: 520px) { .session-facts dt { min-width: 100%; } }

/* ---------------------------------------------------------------------------
 * RESULT brand overrides. Last on purpose: they must win over the shared
 * rules above, and keeping them in one block at the end means a reader (or a
 * naive selector search) finds the shared rule first and the brand override
 * second, instead of tripping over the override while looking for the base.
 * ------------------------------------------------------------------------ */

/* RESULT's own visual language on the authentication surface.
 *
 * The 2026-10-07 review re-branded the RESULT client (dark blue #16345f, light
 * blue #2759a6, orange #ec6608 as a sparing accent, greys #3d3d3c/#dadada), but
 * the sign-in page is a Django template, not the Flutter app, so it kept
 * WorkTimer's emerald identity -- on the first screen every RESULT employee
 * sees. Tokens only: the layout, spacing and focus rules below are shared and
 * stay exactly as they are, and the private WorkTimer deployment keeps the
 * green above because this block only applies when the server marks the
 * document as RESULT.
 *
 * Typeface: RESULT's face is Noto Sans. It is listed first and falls back to
 * the same stack as before; the auth page deliberately does not ship a webfont
 * of its own, so a client without Noto Sans installed still gets a clean sans
 * rather than a 2 MB download on the login screen. The Flutter app self-hosts
 * the real Noto Sans.
 */
/* RESULT's typeface, self-hosted (CSP font-src 'self'): the official Noto Sans
 * variable font (OFL, fonts/OFL-NotoSans.txt) subset to Latin + German and the
 * Brandguide weights Light 300 .. Semibold 600. Only html.result uses it, so
 * private WorkTimer's sign-in page is unchanged. */
@font-face {
  font-family: "WorkTimer Noto Sans";
  src: url("fonts/NotoSans-RESULT-Latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

html.result {
  /* Dark is RESULT's default; static/theme-boot.js switches to light only when
   * this browser saved a light preference, before first paint. Every colour
   * below is a documented RESULT Brandguide swatch (primary colours and their
   * published 10 % tint steps) or a 10 %-step opacity of one; danger red is
   * the single documented semantic exception. */
  color-scheme: dark;
  font-family: "WorkTimer Noto Sans", "Noto Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #ffffff;
  background: #16345f;
  --bg: #16345f;            /* Dunkelblau */
  --bg-soft: #16345f;
  --panel: #3f4f77;         /* Dunkelblau 80 % */
  --panel-strong: #3f4f77;
  --panel-muted: #3f4f77;
  --line: #6a7294;          /* Dunkelblau 60 % */
  --line-strong: #999bb5;   /* Dunkelblau 40 %: 4.6:1 on the page */
  --text: #ffffff;          /* 8.1:1 on the card */
  --muted: #cccccc;         /* Dunkelgrau 30 %: 5.0:1 on the card */
  --muted-2: #cccccc;
  --accent: #c3c8e7;        /* Hellblau 30 %: icons, chips, focus */
  --accent-2: #d7daf0;      /* Hellblau 20 %: links, 5.8:1 on the card */
  --accent-soft: #ec6608;   /* Orange */
  /* WorkTimer wordmark (owner decision 2026-10-12): the 3C DIALOG logo's
   * flat fills, sampled with Pillow; "Work" = 3C orange (= Orange 3), "Timer"
   * = DIALOG teal (not a Brandguide colour). Same in both themes. */
  --wordmark-work: #f07d00;
  --wordmark-timer: #5e8482;
  --danger: #ffb4ab;
  --shadow: none;
  --wash-1: rgba(39, 89, 166, .30);
  --wash-2: rgba(255, 255, 255, .10);
  --chip-bg: rgba(255, 255, 255, .10);
  --chip-line: rgba(255, 255, 255, .20);
  --input-bg: #16345f;
  --button-bg: #ffffff;     /* Dunkelblau on white: 12.4:1 */
  --button-fg: #16345f;
  --button-active: #d7daf0;
  --focus: #ffffff;
  --ring: rgba(255, 255, 255, .30);
  /* Microsoft sign-in button: Microsoft's light button in both themes. */
  --ms-line: #dadada;       /* Hellgrau */
  --ms-bg: #ffffff;
  --ms-fg: #3d3d3c;         /* Dunkelgrau */
}
html.result[data-theme="light"] {
  color-scheme: light;
  color: #3d3d3c;
  background: #ffffff;
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --panel-muted: #ffffff;
  --line: #dadada;          /* Hellgrau */
  --line-strong: #bbbaba;   /* Dunkelgrau 40 % */
  --text: #3d3d3c;          /* Dunkelgrau */
  --muted: #6c6b6b;         /* Dunkelgrau 80 %: 5.3:1 */
  --muted-2: #6c6b6b;
  --accent: #16345f;        /* Dunkelblau */
  --accent-2: #2759a6;      /* Hellblau: 6.9:1 */
  --danger: #b3261e;
  --shadow: 0 18px 48px rgba(22, 52, 95, .10);
  --wash-1: rgba(39, 89, 166, .10);
  --wash-2: rgba(22, 52, 95, .10);
  --chip-bg: rgba(39, 89, 166, .10);
  --chip-line: rgba(22, 52, 95, .20);
  --input-bg: #ffffff;
  --button-bg: #16345f;     /* white on Dunkelblau: 12.4:1 */
  --button-fg: #ffffff;
  --button-active: #3f4f77;
  --focus: #16345f;
  --ring: rgba(22, 52, 95, .20);
}
/* The shared rules above hardcode WorkTimer's emerald in gradients, chips,
 * borders and icon strokes rather than reading tokens. These overrides cover
 * every channel the RESULT sign-in surface paints, each scoped to
 * `html.result` and reading only the tokens above, so light and dark stay in
 * step and the private deployment is untouched by construction. */
html.result body {
  background:
    radial-gradient(circle at 50% -10%, var(--wash-1), transparent 32rem),
    radial-gradient(circle at 102% 36%, var(--wash-2), transparent 28rem),
    var(--bg);
}

/* Round 10, decision 7 (WCAG 2.2 AA): the shared `a { color: var(--accent-soft) }`
   would paint every plain link Orange (3.8:1 dark, 3.3:1 light). Orange is
   reserved for primary actions and the icon strokes, so text links take the
   link blue of the theme (dark Hellblau 20 %, 5.8:1 on the card; light Hellblau,
   6.9:1). Buttons keep their own colours. */
html.result a:not(.button) { color: var(--accent-2); }
html.result a:hover { color: var(--accent-2); }

/* The WorkTimer clock mark keeps its own green artwork on RESULT (the one
 * brand-mark exception); the tile around it stays neutral, not tinted. */
html.result .brand-mark {
  border: 0;
  background: none;
  box-shadow: none;
}
html.result .brand-logo { display: block; width: 100%; height: 100%; }
/* RESULT renders the official clock image, never the private green SVG. */
html.result .brand-mark svg { display: none; }

/* Official RESULT logo below the product name: the stacked mark is portrait,
 * so 52 px tall is what keeps its letters legible (Brandguide minimum: 8 mm).
 * Weiß on the dark page, Dunkelblau on the light one; never recoloured. */
html.result .brand-result-logo {
  display: block;
  width: auto;
  height: 52px;
}
html.result .brand-result-logo.on-light { display: none; }
html.result[data-theme="light"] .brand-result-logo.on-dark { display: none; }
html.result[data-theme="light"] .brand-result-logo.on-light { display: block; }

/* RESULT wordmark: two colours, one word (typography is .brand-copy strong's). */
html.result .wm-work { color: var(--wordmark-work); }
html.result .wm-timer { color: var(--wordmark-timer); }

/* The logo row: RESULT logo, then the Rehkitz easter egg to its right,
 * standing on the logo's bottom edge, a quarter of the logo's height (one
 * letter) clear of it. Decorative: no shadow, no container, no animation.
 * Size = the Flutter lockup's share of the logo's box height: the visible
 * logo is 96.2 % of its box, so 96.2 % desktop makes the visible animal as
 * tall as the visible logo; 90 % tablet, 75 % phone; gone on windows too narrow
 * to carry it. The logo's ink ends 2 % above its box, hence the 1 px lift. */
html.result .brand-co {
  display: flex;
  align-items: flex-end;
  gap: 13px;
  margin-top: 10px;
}
html.result .brand-fawn { display: block; width: auto; height: 50px; flex: none; margin-bottom: 1px; }
@media (max-width: 900px) { html.result .brand-fawn { height: 47px; } }
@media (max-width: 600px) { html.result .brand-fawn { height: 39px; } }
@media (max-width: 520px) { html.result .brand-fawn { height: 33px; } }
@media (max-width: 300px) { html.result .brand-fawn { display: none; } }

html.result .brand-copy small { color: var(--muted); }

html.result .header-link,
html.result .account-nav a { color: var(--accent-2); }

html.result .header-link:hover {
  border-color: var(--chip-line);
  background: var(--chip-bg);
}

html.result .hero-kicker {
  border-color: var(--chip-line);
  background: var(--chip-bg);
  color: var(--accent);
}

html.result .card {
  background: var(--panel);
  box-shadow: var(--shadow);
}

html.result .card::after { background: var(--chip-bg); }

html.result .card hr {
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

html.result .secure-chip {
  border: 1px solid var(--chip-line);
  background: var(--chip-bg);
  color: var(--accent);
}

html.result .secure-icon { background: var(--chip-bg); }

html.result .message {
  border: 1px solid var(--chip-line);
  background: var(--chip-bg);
}

html.result input:not([type=checkbox]),
html.result select,
html.result textarea {
  border-color: var(--line-strong);
  background: var(--input-bg);
  color: var(--text);
}

html.result input::placeholder,
html.result textarea::placeholder { color: var(--muted-2); }

html.result input:not([type=checkbox]):hover,
html.result select:hover,
html.result textarea:hover { border-color: var(--accent); }

html.result input:not([type=checkbox]):focus,
html.result select:focus,
html.result textarea:focus {
  border-color: var(--accent);
  background: var(--input-bg);
  box-shadow: 0 0 0 3px var(--ring);
}

/* Primary action: Dunkelblau with white text in light (12.4:1), inverted to
 * white with Dunkelblau text on the dark page (12.4:1). */
html.result button,
html.result .button {
  border-color: var(--button-bg);
  background: var(--button-bg);
  color: var(--button-fg);
  box-shadow: none;
}

/* A plain <a class="button"> (the 404 page's way back) is inline otherwise,
 * so min-height and the padding box would not apply. The Microsoft button
 * keeps its own full-width flex layout. */
html.result a.button:not(.ms-button) {
  display: inline-flex;
  align-items: center;
}

html.result button:hover,
html.result .button:hover {
  box-shadow: 0 0 0 3px var(--ring);
  color: var(--button-fg);
}

html.result button:active,
html.result .button:active {
  background: var(--button-active);
  color: var(--button-fg);
}

html.result .button:focus-visible { color: var(--button-fg); }

/* The focus ring sits outside the control in the page ink, the same rule the
 * Flutter client follows, so it stays visible against both the button and the
 * page. */
html.result button:focus-visible,
html.result .button:focus-visible,
html.result a:focus-visible,
html.result input:focus-visible,
html.result select:focus-visible,
html.result textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* The Microsoft button keeps Microsoft's own light surface in both themes:
 * it is their brand mark, and recolouring a federated sign-in button is a
 * dark pattern. Microsoft permits the light button on dark backgrounds. */
html.result .ms-button,
html.result .ms-button:hover,
html.result .ms-button:active,
html.result .ms-button:focus-visible {
  border-color: var(--ms-line);
  background: var(--ms-bg);
  color: var(--ms-fg);
}

html.result #passkey_login,
html.result #passkey_login:active,
html.result #passkey_login:focus-visible {
  border-color: var(--line-strong);
  background: var(--input-bg);
  color: var(--accent);
}

html.result #passkey_login:hover {
  border-color: var(--accent);
  background: var(--chip-bg);
  color: var(--accent);
}

html.result .trust-grid,
html.result .trust-item { border-color: var(--line); }
/* The base rule's mint-grey #a9bdb5 is private WorkTimer's; RESULT uses its
 * muted grey. */
html.result .trust-item { color: var(--muted); }

/* Icons carry the structure colour, not the accent: orange stays reserved for
 * the primary call to action. `currentColor` is what the inline SVGs stroke
 * with. */
html.result .trust-icon,
html.result .secure-icon,
html.result .hero-kicker svg { color: var(--accent); }

html.result .trust-icon {
  border-color: var(--chip-line);
  background: var(--chip-bg);
}

html.result .card p,
html.result .card li { color: var(--text); }

/* The card heading was near-white for the private dark-green card. */
html.result .card h1 { color: var(--text); }

html.result footer,
html.result .brand-copy small { color: var(--muted); }
/* Footer links (Impressum, Datenschutz) are small text: Orange reaches only
 * 3.8:1 on Dunkelblau, the link token passes in both themes. */
html.result footer a { color: var(--accent-2); }
/* D-4: the 10 px links were 14 px tall; the box (not the text) grows to the
 * 24 px minimum target (WCAG 2.5.8), so the footer looks the same. The row
 * centres its three texts, so the taller links stay on their line. */
html.result footer { align-items: center; }
html.result footer a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

html.result .secure-chip small,
html.result .secure-chip strong { color: var(--text); }

/* The hero illustration is WorkTimer's own emerald device artwork: seventeen
 * hardcoded greens inside an inline SVG, which no token can reach. RESULT does
 * not get a half-recoloured version of someone else's picture. */
html.result .device-art { display: none; }

@media (max-width: 520px) {
  html.result .brand-result-logo { height: 44px; margin-top: 8px; }
}

/* The narrow-screen rule hides these <br>s, which glued the German labels
 * together ("Kontofür", "Sicherund"). On RESULT the break stays. */
html.result .trust-item br { display: inline; }

/* No picture on RESULT: the hero copy takes the whole row. */
html.result .login-hero { grid-template-columns: minmax(0, 1fr); }

/* Design audit 2026-10-25 (RESULT sign-in): display type at -0.053 em
 * crushed Noto Sans; small labels fell to 9–11 px, below the 13 px floor of
 * the RESULT feedback; the card's decorative circle had no function. */
html.result .login-hero h1,
html.result .card h1 { letter-spacing: -.02em; }
html.result .card::after { display: none; }
html.result .hero-kicker,
html.result .secure-chip strong,
html.result .secure-chip small { font-size: 13px; }
html.result .login-lead { margin: 0 0 24px; font-size: 16px; }
