html.day {
  --bg:#f4f2ec;
  --surface:#ffffff;
  --ink:#15161c;
  --muted:#5c584f;
  --line:rgba(18,18,24,.14);
  color-scheme: light;
}
html:not(.day) {
  color-scheme: dark;
}
html.theme-ready body,
html.theme-ready header,
html.theme-ready .card,
html.theme-ready form {
  transition:
    background-color .35s ease,
    color .35s ease,
    border-color .35s ease;
}
html.day .logo,
html.day h1,
html.day h2,
html.day h3,
html.day .cap h3,
html.day .cta h2,
html.day .cta .mail,
html.day summary,
html.day .qa summary {
  color: var(--ink);
}
html.day .cta a {
  color: #fff;
}
html.day .grain {
  opacity: .03;
  mix-blend-mode: multiply;
}
html.day .addons {
  background: #faf8f3;
}
html.day .fld input,
html.day .fld select,
html.day .fld textarea {
  background: #ffffff;
  color: var(--ink);
}
html.day .chk input {
  background: #ffffff;
}
html.day .chk input:checked::after {
  border-color: #fff;
}
html.day .submit {
  color: #fff;
}
html.day ::selection {
  background: var(--accent);
  color: #fff;
}
html.day .note.ok {
  background: #eaf7ef;
  color: #1c5133;
  border-color: #bfe0cc;
}
html.day .note.err {
  background: #fdeeea;
  color: #7a2618;
  border-color: #f0c3b4;
}
html.day header {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
}
html.day .box {
  background: #faf8f3;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.daynight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
  padding: 8px 6px;
  min-width: 24px;
  min-height: 24px;
  opacity: .85;
  transition: opacity .3s;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  white-space: nowrap;
}
.daynight:hover {
  opacity: 1;
}
.daynight .ic {
  display: none;
  line-height: 0;
}
html:not(.day) .daynight .moon {
  display: inline-flex;
}
html.day .daynight .sun {
  display: inline-flex;
}
@media (max-width: 520px) {
  .daynight .dn-lbl {
    display: none;
  }
}
@media (max-width: 430px) {
  header .right {
    gap: 8px;
  }
  .daynight {
    padding: 6px 2px;
    gap: 4px;
  }
  header .langsw button {
    padding: 5px 4px;
    font-size: 11px;
  }
  header .langsw .sep {
    font-size: 10px;
  }
}
@media (max-width: 360px) {
  header .right {
    gap: 6px;
  }
  .daynight {
    padding: 6px 0;
  }
}
.tbar {
  position: fixed;
  right: clamp(16px, 4vw, 40px);
  bottom: 26px;
  z-index: 70;
  display: flex;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition:
    background .35s ease,
    border-color .35s ease,
    opacity .3s ease,
    transform .3s ease;
}
.tbar.tbar-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
}
.tbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 2px 8px 2px 2px;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  min-height: 28px;
}
.tbar-dot {
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  padding: 2px;
  flex: 0 0 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  background-clip: content-box;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}
.tbar[data-open=true] .tbar-dot {
  transform: rotate(180deg) scale(.92);
}
.tbar-name {
  transition: opacity .25s ease;
}
@media (max-width: 560px) {
  .tbar-name {
    display: none;
  }
  .tbar-btn {
    padding: 2px;
  }
}
.tbar-list {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transition:
    max-width .42s cubic-bezier(.22, 1, .36, 1),
    opacity .28s ease,
    margin-left .42s cubic-bezier(.22, 1, .36, 1);
  margin-left: 0;
}
.tbar[data-open=true] .tbar-list {
  max-width: 340px;
  opacity: 1;
  visibility: visible;
  margin-left: 10px;
}
.tbar-sw {
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  padding: 2px;
  flex: 0 0 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  background-clip: content-box;
  cursor: pointer;
  appearance: none;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .2s, border-color .2s;
}
.tbar-sw:hover {
  transform: scale(1.14);
}
.tbar-sw[aria-checked=true] {
  border-color: var(--ink);
}
.tbar {
  bottom: calc(26px + var(--ck-h, 0px));
}
@media (prefers-reduced-motion: reduce) {
  .tbar-list,
  .tbar-dot,
  .tbar-name {
    transition: none;
  }
  html.theme-ready body,
  html.theme-ready header,
  html.theme-ready .card,
  html.theme-ready form {
    transition: none;
  }
}
.daynight:focus-visible,
.langsw button:focus-visible,
.tbar-btn:focus-visible,
.tbar-sw:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, .12);
  border-radius: 8px;
}
html.day .daynight:focus-visible,
html.day .langsw button:focus-visible,
html.day .tbar-btn:focus-visible,
html.day .tbar-sw:focus-visible {
  background: rgba(0, 0, 0, .06);
}
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: 240ms ease both dsv-fade-out;
}
::view-transition-new(root) {
  animation: 320ms ease both dsv-fade-in;
}
@keyframes dsv-fade-out {
  to {
    opacity: 0;
  }
}
@keyframes dsv-fade-in {
  from {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}
html.theme-anim body,
html.theme-anim body *:not(canvas):not(iframe):not(video) {
  transition:
    color .5s ease,
    background-color .5s ease,
    border-color .5s ease,
    fill .5s ease,
    stroke .5s ease !important;
}
