:root {
  --bg: #f2f5f8;
  --surface: #fff;
  --ink: #14213d;
  --muted: #4c5a73;
  --line: #d3dce7;
  --sl: #e3eaf2;
  --sd: #7f9bb8;
  --dot: #e8a33d;
  --cap: #d1495b;
  --ok: #2e8b6a;
  --wf: #fff;
  --ws: #14213d;
  --bf: #14213d;
  --bs: #a9b8ce;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1626;
    --surface: #172138;
    --ink: #e8eef7;
    --muted: #a3b1c8;
    --line: #2a3957;
    --sl: #3f5273;
    --sd: #25324b;
    --dot: #f2b04f;
    --cap: #ef6b7d;
    --ok: #4fc3a0;
    --wf: #f5f7fa;
    --ws: #0f1626;
    --bf: #0a0f1c;
    --bs: #a3b1c8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1626;
  --surface: #172138;
  --ink: #e8eef7;
  --muted: #a3b1c8;
  --line: #2a3957;
  --sl: #3f5273;
  --sd: #25324b;
  --dot: #f2b04f;
  --cap: #ef6b7d;
  --ok: #4fc3a0;
  --wf: #f5f7fa;
  --ws: #0f1626;
  --bf: #0a0f1c;
  --bs: #a3b1c8;
  color-scheme: dark;
}
html {
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 80px);
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    18px/1.6 "Bricolage Grotesque",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--surface);
  z-index: 30;
}
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--dot);
  outline-offset: 3px;
}
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand svg {
  width: 30px;
  height: 30px;
}
nav {
  display: flex;
  gap: 2px;
  flex: 1 1 0;
  flex-wrap: nowrap;
  min-width: 0;
}
nav a {
  padding: 8px 12px;
  border-radius: 999px;
  flex: 0 0 auto;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
}
nav a:hover {
  color: var(--ink);
}
nav a.on {
  background: var(--ink);
  color: var(--bg);
}
.pts {
  min-width: 150px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.3;
}
.pts b {
  font-size: 1.4rem;
  color: var(--ink);
}
.meter {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}
.meter i {
  display: block;
  height: 100%;
  background: var(--dot);
  transition: width 0.5s;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 20px;
}
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 14px;
}
.lead {
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.2rem;
  margin: 0 0 28px;
}
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  font-family: inherit;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  cursor: pointer;
}
.btn:hover {
  opacity: 0.88;
}
.btn.g {
  background: transparent;
  color: var(--ink);
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 40px;
}
svg.w {
  --pf: var(--wf);
  --ps: var(--ws);
}
svg.b {
  --pf: var(--bf);
  --ps: var(--bs);
}
.sh {
  fill: var(--pf, #fff);
  stroke: var(--ps, #14213d);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.eye {
  fill: var(--ps, #14213d);
}
.board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  aspect-ratio: 1;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--ink);
}
.sq {
  position: relative;
  background: var(--sd);
  cursor: default;
}
.sq.l {
  background: var(--sl);
}
.ex .sq {
  cursor: pointer;
}
.co {
  position: absolute;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1;
  opacity: 0.6;
}
.rk {
  top: 3px;
  left: 4px;
}
.fl {
  bottom: 3px;
  right: 4px;
}
.sq.mv::after {
  content: "";
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: var(--dot);
}
.sq.cp {
  box-shadow: inset 0 0 0 4px var(--cap);
}
.sq.ok {
  box-shadow: inset 0 0 0 5px var(--ok);
}
.sq.bad {
  box-shadow: inset 0 0 0 5px var(--cap);
}
.pl {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pc {
  position: absolute;
  width: 12.5%;
  height: 12.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    left 0.7s ease,
    top 0.7s ease,
    opacity 0.5s;
}
.pc svg {
  width: 80%;
  height: 80%;
}
.cap {
  margin: 12px 0 0;
  min-height: 3.2em;
  font-weight: 600;
  font-size: 0.98rem;
}
.list {
  margin-top: 8px;
}
.row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.row .n {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--sd);
  line-height: 1;
}
.row h3 {
  margin: 0 0 4px;
  font-size: 1.5rem;
}
.row p {
  margin: 0;
  color: var(--muted);
  max-width: 50ch;
}
.row .sc {
  text-align: right;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.tag {
  font-weight: 600;
}
.tag.ok {
  color: var(--ok);
}
.les {
  padding: 40px 0 64px;
}
.back {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.rule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.rule h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  line-height: 1.2;
}
.rule p {
  margin: 0;
  max-width: 46ch;
}
.exam {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 56px 0 80px;
}
.exam .in {
  max-width: 520px;
}
.qn {
  margin: 0 0 6px;
  color: var(--muted);
  font-weight: 600;
}
.qq {
  margin: 0 0 20px;
  font-size: 1.5rem;
  line-height: 1.25;
}
.status {
  min-height: 5.4em;
  margin: 18px 0 12px;
  padding: 14px 16px;
  border-left: 4px solid var(--line);
  background: var(--bg);
  border-radius: 0 12px 12px 0;
  font-weight: 600;
}
.status.ok {
  border-color: var(--ok);
}
.status.bad {
  border-color: var(--cap);
}
.res {
  padding: 8px 0;
}
.big {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.acts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.pc.me::before {
  content: "";
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px #3b82f6,
    0 0 12px #3b82f6;
}
.lg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 16px 0;
}
.lg span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lg svg {
  width: 28px;
  height: 28px;
}
.lg .ring {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #3b82f6;
}
.acc {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 230px;
  line-height: 1.25;
}
.acc b {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
.resume {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--dot);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 8px;
}
.resume p {
  margin: 0;
  flex: 1;
}
.top {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
body {
  background:
    radial-gradient(
      1100px 480px at 88% -8%,
      color-mix(in srgb, var(--dot) 16%, transparent),
      transparent 62%
    ),
    var(--bg);
  background-attachment: fixed;
}
.board {
  box-shadow:
    0 0 0 1px var(--ink),
    0 28px 50px -22px rgba(20, 33, 61, 0.5);
}
.pc svg {
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}
.pc {
  transition:
    left var(--mv, 0.7s) ease,
    top var(--mv, 0.7s) ease,
    opacity 0.5s;
}
.btn {
  transition:
    transform 0.15s,
    opacity 0.2s;
  box-shadow: 0 8px 20px -10px rgba(20, 33, 61, 0.6);
}
.btn:hover {
  transform: translateY(-1px);
  opacity: 1;
}
.btn.g {
  box-shadow: none;
}
.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.row {
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 22px 24px;
  margin: 6px 0;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.row:hover {
  background: var(--surface);
  border-color: var(--line);
}
.row .n {
  color: var(--dot);
}
.gh {
  margin: 44px 0 6px;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
}
.av {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
}
.menu {
  position: relative;
}
.prof {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px 4px 4px;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
}
.prof:hover {
  background: var(--bg);
}
.dd {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 28px 50px -18px rgba(0, 0, 0, 0.4);
  z-index: 40;
}
.dd[hidden] {
  display: none;
}
.dd a,
.dd button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 0;
  background: none;
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}
.dd a:hover,
.dd button:hover {
  background: var(--bg);
}
.mh {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
  display: flex;
  gap: 12px;
  align-items: center;
  line-height: 1.3;
}
.mh small {
  color: var(--muted);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}
.tile b {
  display: block;
  font-size: 2.4rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.tile span {
  color: var(--muted);
  font-size: 0.9rem;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  margin: 16px 0;
}
.panel h3 {
  margin: 0 0 14px;
}
.br {
  display: grid;
  grid-template-columns: 170px 1fr 56px;
  gap: 14px;
  align-items: center;
  margin: 10px 0;
  font-size: 0.95rem;
}
.tr {
  height: 10px;
  background: var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.tr i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--dot), #f6c76b);
  border-radius: 5px;
}
.days {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.days i {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--line);
}
.days i.on {
  background: var(--ok);
}
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.bg2 {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  opacity: 0.45;
  font-size: 0.9rem;
}
.bg2.on {
  opacity: 1;
  border-color: var(--dot);
  background: color-mix(in srgb, var(--dot) 10%, var(--surface));
}
.bg2 b {
  display: block;
  font-size: 1rem;
}
.lvl {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.rw {
  position: relative;
  width: 140px;
  height: 140px;
}
.rw svg {
  transform: rotate(-90deg);
}
.rw div {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.7rem;
}
.set {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.set:first-child {
  border: 0;
}
.set p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.seg {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.seg button {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.seg button[disabled] {
  cursor: not-allowed;
  border: 1.5px dashed var(--muted);
}
.seg button.on {
  background: var(--ink);
  color: var(--bg);
}
.inp {
  font: inherit;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}
.wel {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.wl {
  background: #14213d;
  color: #e8eef7;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.wl h1 {
  margin: 0;
}
.wl .cap {
  color: #a9b8ce;
}
.wl .board {
  max-width: 380px;
}
.wr {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 36px;
  box-shadow: 0 34px 60px -32px rgba(20, 33, 61, 0.45);
}
:root[data-board="hout"] {
  --sl: #ebd7b5;
  --sd: #b58863;
}
:root[data-board="bos"] {
  --sl: #eeeed2;
  --sd: #769656;
}
html.nc .co {
  display: none;
}
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  max-width: 660px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.4);
  z-index: 50;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie p {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  min-width: 200px;
}
.cookie a {
  text-decoration: underline;
}
footer.site {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 36px 0 56px;
  color: var(--muted);
  font-size: 0.92rem;
}
footer.site .fg {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 56px;
  justify-content: space-between;
}
footer.site b {
  color: var(--ink);
}
footer.site ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 4px;
}
footer.site a {
  text-decoration: none;
}
footer.site a:hover {
  text-decoration: underline;
}
footer.site p {
  margin: 0;
}
details.q {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
details.q summary {
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
}
details.q p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 60ch;
}
.cert {
  border: 3px double var(--ink);
  border-radius: 20px;
  padding: 48px 28px;
  text-align: center;
  background: var(--surface);
  max-width: 720px;
  margin: 24px auto;
}
.cert h1 {
  margin: 8px 0;
}
.cert h2 {
  font-size: 2.2rem;
  margin: 12px 0;
}
.pcs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.pcs > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.pcs svg {
  width: 46px;
  height: 46px;
}
.pcs b {
  display: block;
  font-size: 1.1rem;
}
.pcs span {
  color: var(--muted);
  font-size: 0.92rem;
}
.gl {
  margin: 18px 0;
}
.gl div {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.gl dt {
  font-weight: 800;
  font-size: 1.1rem;
}
.gl dd {
  margin: 2px 0 0;
  color: var(--muted);
  max-width: 62ch;
}
.feat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.feat > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.feat h3 {
  margin: 0 0 6px;
}
.feat p {
  margin: 0;
  color: var(--muted);
}
@media print {
  .top,
  footer.site,
  .cookie,
  .noprint {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000;
  }
  .cert {
    border-color: #000;
    box-shadow: none;
  }
}
#ex {
  scroll-margin-top: 24px;
}
#ex > * {
  animation: qin 0.4s ease both;
}
@keyframes qin {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@media (prefers-reduced-motion: reduce) {
  #ex > * {
    animation: none;
  }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-board="hout"] {
    --sl: #9c8460;
    --sd: #6b4a33;
  }
  :root:not([data-theme="light"])[data-board="bos"] {
    --sl: #8e9a74;
    --sd: #4c6b3b;
  }
}
:root[data-theme="dark"][data-board="hout"] {
  --sl: #9c8460;
  --sd: #6b4a33;
}
:root[data-theme="dark"][data-board="bos"] {
  --sl: #8e9a74;
  --sd: #4c6b3b;
}
.res .big {
  animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}
.sq:focus-visible {
  outline-offset: -4px;
}
@media (prefers-reduced-motion: reduce) {
  .res .big {
    animation: none;
  }
}
@media (max-width: 820px) {
  .wel {
    grid-template-columns: 1fr;
  }
  .wl {
    padding: 32px 24px;
  }
  .br {
    grid-template-columns: 110px 1fr 48px;
  }
  .dd {
    right: -8px;
  }
  .prof span {
    display: none;
  }
}
@media (max-width: 820px) {
  body {
    font-size: 17px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 36px 0;
  }
  .rule {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .row {
    grid-template-columns: 44px 1fr;
    gap: 16px;
  }
  .row .sc {
    grid-column: 2;
    align-items: flex-start;
    text-align: left;
  }
  .bar {
    gap: 6px 16px;
    padding: 8px 24px;
  }
  nav {
    order: 3;
    flex-basis: 100%;
  }
  .pts {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pc {
    transition: none;
  }
}
.sq.tip {
  box-shadow: inset 0 0 0 5px var(--dot);
}
.sq.tip::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  border: 4px solid var(--dot);
}
.mo {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(10, 15, 28, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: auto;
}
.md {
  background: var(--surface);
  color: var(--ink);
  border-radius: 22px;
  padding: 30px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.md.fin {
  max-width: 560px;
  text-align: center;
}
.md.fin h1 {
  font-size: clamp(2.4rem, 8vw, 3.6rem);
}
.md h2 {
  margin: 0;
}
.ttw {
  overflow-x: auto;
}
.tt {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
  min-width: 340px;
}
.tt th {
  text-align: left;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--line);
}
.tt td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.tt tr:last-child td {
  border-bottom: 0;
}
.tt .r1 td {
  background: color-mix(in srgb, var(--dot) 12%, transparent);
}
.tt .r1 td:first-child {
  border-radius: 12px 0 0 12px;
}
.tt .r1 td:last-child {
  border-radius: 0 12px 12px 0;
}
.tt tr.em td {
  color: var(--muted);
}
.rk2 {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  border: 1.5px solid var(--line);
  color: var(--muted);
}
.tt .r1 .rk2 {
  background: var(--dot);
  border-color: var(--dot);
  color: #14213d;
}
.tt .r2 .rk2 {
  background: #a9b8ce;
  border-color: #a9b8ce;
  color: #14213d;
}
.tt .r3 .rk2 {
  background: #c98b5b;
  border-color: #c98b5b;
  color: #14213d;
}
.pc {
  will-change: left, top;
}
.card.lg {
  max-width: 480px;
  padding: 40px 36px;
  font-size: 1.125rem;
  line-height: 1.5;
}
.lg h2 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0 0 8px;
}
.lg h2:focus {
  outline: none;
}
.lg .sub {
  color: var(--muted);
  margin: 0 0 22px;
}
.lg .btn {
  width: 100%;
  min-height: 56px;
  font-size: 1.125rem;
  line-height: 1.2;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  box-sizing: border-box;
}
.lg .btn + .btn {
  margin-top: 12px;
}
.lg .gb {
  background: #fff;
  color: #1f1f1f;
  border: 2px solid #5f6368;
}
.lg .or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  margin: 22px 0;
  font-size: 1rem;
}
.lg .or:before,
.lg .or:after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--muted);
}
.lg .seg2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--sl);
  padding: 6px;
  border-radius: 16px;
  margin-bottom: 22px;
}
.lg .seg2 button {
  min-height: 52px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 8px;
}
.lg .seg2 button[aria-pressed="true"] {
  background: var(--surface);
  border-color: var(--ink);
}
.lg .fl {
  margin-bottom: 18px;
}
.lg label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.lg .inp.big {
  width: 100%;
  box-sizing: border-box;
  min-height: 56px;
  font-size: 1.125rem;
  border: 2px solid var(--muted);
  border-radius: 14px;
  margin: 0;
}
.lg .inp[aria-invalid="true"] {
  border-color: var(--cap);
}
.lg .pwr {
  display: flex;
  gap: 8px;
}
.lg .pwr .inp {
  flex: 1;
  min-width: 0;
}
.lg .pwr .sh {
  width: auto;
  flex: 0 0 auto;
  min-height: 56px;
  padding: 0 14px;
  font-size: 0.95rem;
  box-shadow: none;
  max-width: 9.5em;
}
.lg .hint {
  color: var(--muted);
  font-size: 1rem;
  margin: 6px 0 0;
}
.lg .am {
  margin: 0 0 14px;
  font-weight: 600;
}
.lg .am:not(:empty) {
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--muted);
}
.lg .am.err:not(:empty) {
  border-color: var(--cap);
}
.lg .am.ok:not(:empty) {
  border-color: var(--ok);
}
.lg .lnk {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  color: var(--ink);
  text-decoration: underline;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  font-family: inherit;
  cursor: pointer;
  min-height: 48px;
  margin-top: 10px;
}
.lg .steps {
  padding-left: 1.3em;
  margin: 0 0 14px;
}
.lg .steps li {
  margin: 6px 0;
}
.lg :focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--dot);
}
@media (prefers-reduced-motion: reduce) {
  .lg * {
    transition: none !important;
  }
}
@media (max-width: 480px) {
  .card.lg {
    padding: 28px 20px;
  }
  .lg .pwr {
    flex-direction: column;
  }
  .lg .pwr .sh {
    max-width: none;
    width: 100%;
  }
}

/* Inlogpagina */
body.auth .top {
  display: none;
}
body.auth footer.site {
  margin-top: 0;
}
.wel {
  min-height: calc(100vh - 70px);
  min-height: calc(100svh - 70px);
  grid-template-columns: 1.05fr 1fr;
}
body.auth .wel {
  min-height: calc(100vh - env(safe-area-inset-top, 0px));
  min-height: calc(100svh - env(safe-area-inset-top, 0px));
}
.wl {
  position: relative;
  overflow: hidden;
  justify-content: space-between;
  gap: 32px;
  padding: 44px clamp(28px, 5vw, 72px);
  background:
    radial-gradient(
      760px 460px at 8% -8%,
      rgba(232, 163, 61, 0.24),
      transparent 62%
    ),
    radial-gradient(
      640px 520px at 105% 108%,
      rgba(59, 130, 246, 0.22),
      transparent 60%
    ),
    #14213d;
}
.wl::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  pointer-events: none;
  background-image: conic-gradient(
    rgba(255, 255, 255, 0.05) 25%,
    transparent 0 50%,
    rgba(255, 255, 255, 0.05) 0 75%,
    transparent 0
  );
  background-size: 88px 88px;
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
  mask-image: linear-gradient(to top, #000, transparent);
}
.wl > * {
  position: relative;
  z-index: 1;
}
.wbrand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  color: #e8eef7;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.wbrand i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--dot);
}
.wbrand svg {
  width: 28px;
  height: 28px;
  --pf: #14213d;
  --ps: #14213d;
}
.wmid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.wl h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.7rem);
  max-width: 13ch;
  margin: 0;
}
.wl .lead {
  color: #b9c6da;
  max-width: 40ch;
  margin: 0;
}
.wfeat {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  color: #b9c6da;
  font-size: 1rem;
}
.wfeat li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-left: 18px;
  position: relative;
}
.wfeat li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--dot);
  transform: rotate(45deg);
}
.wfeat b {
  color: #fff;
}
.wl #wd {
  max-width: 340px;
  width: 100%;
}
.wl .board {
  max-width: 340px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.18),
    0 24px 50px -20px rgba(0, 0, 0, 0.6);
}
.wr {
  background-color: var(--bg);
  background-image:
    radial-gradient(closest-side, var(--bg) 55%, transparent),
    conic-gradient(
      color-mix(in srgb, var(--ink) 5%, transparent) 25%,
      transparent 0 50%,
      color-mix(in srgb, var(--ink) 5%, transparent) 0 75%,
      transparent 0
    );
  background-size:
    100% 100%,
    96px 96px;
  padding: 40px clamp(16px, 4vw, 56px);
}
.card.lg {
  display: block;
  margin: 0;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow:
    0 40px 70px -36px rgba(20, 33, 61, 0.5),
    0 2px 0 rgba(20, 33, 61, 0.04);
  animation: cin 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.card.lg::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--dot), #f6c76b);
}
.card.lg h2 {
  color: var(--ink);
}
.lg .btn:not(.g) {
  box-shadow: 0 10px 20px -12px rgba(20, 33, 61, 0.7);
}
.lg .btn:not(.g):active {
  transform: translateY(1px);
}
@keyframes cin {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .card.lg {
    animation: none;
  }
}
@media (max-width: 820px) {
  .wel,
  body.auth .wel {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .wl {
    padding: 24px 24px 28px;
    gap: 18px;
  }
  .wl .lead,
  .wfeat,
  .wl #wd {
    display: none;
  }
  .wl h1 {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
    max-width: none;
  }
  .wl::after {
    height: 70%;
  }
  .wr {
    padding: 24px 16px 40px;
  }
}
.top .wrap {
  max-width: 1200px;
}
.bar {
  flex-wrap: nowrap;
  gap: 16px;
}
.pts {
  flex: 0 0 auto;
}
.menu {
  flex: 0 0 auto;
}
@media (max-width: 1199px) {
  html {
    scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 124px);
  }
  .bar {
    flex-wrap: wrap;
    gap: 6px 12px;
    padding-top: 8px;
    padding-bottom: 0;
  }
  .brand {
    order: 1;
  }
  .pts {
    order: 2;
    margin-left: auto;
    min-width: 0;
  }
  .menu {
    order: 3;
  }
  nav {
    order: 4;
    flex: 1 1 100%;
    justify-content: space-between;
    background: var(--bg);
    border-radius: 999px;
    padding: 4px;
    margin: 2px 0 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  nav::-webkit-scrollbar {
    display: none;
  }
  nav a {
    flex: 1 1 auto;
    text-align: center;
    padding: 8px 8px;
    font-size: clamp(0.74rem, 2.4vw, 0.95rem);
  }
}
@media (max-width: 480px) {
  .top .wrap {
    padding-left: 12px;
    padding-right: 12px;
  }
  .pu {
    display: none;
  }
  .brand {
    font-size: 1.05rem;
  }
  nav a {
    padding: 8px 4px;
  }
}
@media (max-width: 360px) {
  nav a {
    font-size: 0.7rem;
    padding: 8px 2px;
  }
  .brand span {
    display: none;
  }
}
.gl dd a.gla {
  display: inline-block;
  margin-left: 4px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--dot);
  text-underline-offset: 3px;
  white-space: nowrap;
}
.gl dd a.gla:hover {
  text-decoration-thickness: 2px;
}
.text-button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.sync-status {
  display: block;
  max-width: calc(100% - 32px);
  margin: 12px auto 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
}
.sync-status:not(:disabled) {
  cursor: pointer;
  color: var(--cap);
}
.cookie .acts {
  margin: 0;
}
.cookie .btn {
  padding: 10px 16px;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  background: var(--surface);
  padding: 12px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
.sq:focus-visible {
  outline-offset: -4px;
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.prof {
  max-width: min(280px, 42vw);
}
.prof span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .prof {
    max-width: 36vw;
    padding-right: 8px;
  }
}
@media print {
  :root {
    --bg: #fff;
    --surface: #fff;
    --ink: #000;
    --muted: #333;
    color-scheme: light;
  }
  .sync-status,
  .skip-link {
    display: none !important;
  }
  .cert {
    background: #fff !important;
    color: #000 !important;
  }
}
