/*
  VOICE   Marco's site: calm, photographic, informal tone, uppercase headings in Roboto.
  IDEA    Each app stands on its own stage: Kulisse in a dark studio, Satzspiegel on the cutting mat.
  PICTURE The apps themselves, as live reconstructions that demonstrate their core features while scrolling.
  COLOUR  White, #18272A, #CED5D6 for the site; Kulisse #0d0d0e + amber; Satzspiegel mat-green + yellow.
  TYPE    Roboto (site), Instrument Sans (Kulisse), Bricolage Grotesque (Satzspiegel), Literata (book page).
  LAYOUT  Header, hero with both devices, two scroll stages with steps, contact like the site, footer.
*/

/* Fonts (self-hosted, decoded from the original data URIs — see assets/fonts) */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../assets/fonts/roboto.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url('../assets/fonts/instrument-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../assets/fonts/bricolage-grotesque.woff2') format('woff2');
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('../assets/fonts/literata.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url('../assets/fonts/caveat.woff2') format('woff2');
}
@font-face {
  font-family: 'KDot';
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: url('../assets/fonts/kdot.woff2') format('woff2');
}
@font-face {
  font-family: 'KMono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('../assets/fonts/kmono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'KMono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('../assets/fonts/kmono-500.woff2') format('woff2');
}

:root {
  color-scheme: light;
  /* Website palette */
  --w: #fff;
  --ink: #333;
  --txt: #494949;
  --acc: #18272A;
  --stone: #CED5D6;
  --mist: #F1F4F4;

  /* Kulisse palette (amber on near-black) */
  --k-bg: #0d0d0e;
  --k-ink: #f1f0ec;
  --k-amb: #ffb547;
  --k-dim: #8f8f8a;
  --k-p1: #151517;
  --k-p2: #202023;
  --k-line: #29292d;
  --k-guide: #ff4fa3;

  /* Satzspiegel palette (mat green, yellow, paper) */
  --s-bg0: #0F1715;
  --s-bg1: #141E1B;
  --s-bg2: #1C2925;
  --s-bg3: #263631;
  --s-bg4: #31453F;
  --s-mat: #1D3A33;
  --s-y: #F3D54E;
  --s-on: #E8F0EB;
  --s-dim: #A3B5AE;
  --s-faint: #6E827B;
  --s-paper: #FFFDF8;
  --s-ink: #17171A;

  /* Signal colours (status / magnifier) */
  --mag: #FF6FAE;
  --cy: #5FD2F2;
  --ok: #78DDA0;
  --warn: #FFB259;
  --bad: #FF7B6E;
  --ease: cubic-bezier(.2, .8, .2, 1)
}

:root[data-theme] {
  color-scheme: light
}

* {
  box-sizing: border-box;
  min-width: 0
}

html {
  scroll-behavior: smooth;
  overflow-x: clip
}

body {
  margin: 0;
  background: #fff;
  color: var(--txt);
  font: 400 17px/1.6 Roboto, system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased
}

img,
svg {
  display: block
}

a {
  color: inherit
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.02;
  text-wrap: balance
}

h1,
h2 {
  text-transform: uppercase
}

p {
  margin: 0
}

.ic {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none
}

/* Header */
.top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px max(5vw, 18px);
  max-width: 1360px;
  margin: 0 auto
}

.logo {
  display: block;
  width: 190px;
  flex: none
}

.logo svg {
  width: 100%;
  height: auto
}

.top nav {
  margin-left: auto;
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-size: 16px
}

.top nav a {
  text-decoration: none;
  color: var(--acc);
  padding: 10px 0;
  position: relative
}

.top nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 2px;
  background: var(--acc);
  transition: right .3s var(--ease)
}

.top nav a:hover::after,
.top nav a:focus-visible::after {
  right: 0
}

@media (max-width:560px) {
  .top {
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 16px
  }

  .top .logo {
    width: 132px
  }

  .top nav {
    gap: 16px;
    font-size: 15px
  }

  .top nav a:last-child {
    display: none
  }
}

/* Buttons (as on the website) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 15px 30px;
  background: var(--acc);
  color: var(--stone);
  font: 400 15px/1 Roboto, sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(24, 39, 42, .18)
}

.btn:focus-visible,
.top a:focus-visible,
.btn-o:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px
}

/* Giant watermark words (filled, not outline) */
.wm {
  position: absolute;
  left: 0;
  white-space: nowrap;
  font: 700 clamp(96px, 19vw, 250px)/.8 Roboto, sans-serif;
  text-transform: uppercase;
  letter-spacing: .02em;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  z-index: 0
}

/* Hero */
.hero {
  position: relative;
  overflow: clip;
  overflow-clip-margin: 40px;
  padding: clamp(36px, 6vw, 80px) max(5vw, 18px) clamp(48px, 6vw, 90px);
  max-width: 1360px;
  margin: 0 auto;
  text-align: center
}

.hero .wm {
  top: clamp(10px, 3vw, 40px);
  color: var(--mist);
  right: 0;
  text-align: center
}

.hero h1 {
  position: relative;
  font-size: clamp(34px, 5.4vw, 64px);
  max-width: 15ch;
  margin: clamp(40px, 6vw, 84px) auto 0
}

.hero .lead {
  position: relative;
  max-width: 640px;
  margin: 22px auto 0;
  font-size: clamp(16px, 1.6vw, 18px)
}

.hero-pic {
  position: relative;
  margin: clamp(30px, 4vw, 56px) auto 0;
  max-width: 1060px;
  aspect-ratio: 1120/600
}

.hero-pic>a {
  position: absolute;
  display: block;
  border-radius: 14px;
  transition: transform .5s var(--ease)
}

.hero-pic>a:hover {
  transform: translateY(-6px)
}

.hero-pic>a:focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: 6px
}

.hp-win {
  right: 0;
  top: 0;
  width: 78%;
  aspect-ratio: 1440/900
}

.hp-phone {
  left: 6%;
  bottom: 0;
  width: 22.5%;
  aspect-ratio: 414/868
}

.doors {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 60px);
  max-width: 1000px;
  margin: clamp(28px, 4vw, 50px) auto 0;
  text-align: left
}

.door h2 {
  font-size: clamp(26px, 3vw, 34px)
}

.door p {
  margin: 10px 0 20px;
  max-width: 42ch
}

@media (max-width:640px) {
  .doors {
    grid-template-columns: minmax(0, 1fr)
  }

  .hero-pic {
    aspect-ratio: 1120/760
  }

  .hp-win {
    width: 92%
  }

  .hp-phone {
    width: 31%
  }
}

/* Scaled devices */
.fit {
  position: relative;
  width: 100%;
  height: 100%
}

.fit>.dev {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(var(--s, .3))
}

.fit.cam>.dev {
  transition: transform .9s var(--ease)
}

/* App bands */
.band {
  position: relative;
  overflow: clip
}

.band-in {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(70px, 9vw, 130px) max(5vw, 18px) 0
}

.band .wm {
  top: clamp(40px, 6vw, 90px)
}

.band h2 {
  position: relative;
  font-size: clamp(44px, 7vw, 88px);
  margin-top: clamp(56px, 9vw, 130px)
}

.band .lead {
  position: relative;
  max-width: 620px;
  margin-top: 20px;
  font-size: clamp(17px, 1.7vw, 19px)
}

.facts {
  position: relative;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 15px
}

.facts li {
  display: flex;
  align-items: center;
  gap: 10px
}

/* Scroll track */
.scrolly {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 70px);
  margin-top: clamp(40px, 6vw, 80px)
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: 4vh 0;
  z-index: 2
}

.steps {
  position: relative;
  padding: 34vh 0 30vh
}

.step {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: .28;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
  cursor: pointer
}

.step.on {
  opacity: 1
}

.step h3 {
  font-size: clamp(25px, 2.6vw, 34px);
  margin-bottom: 14px
}

.step p {
  max-width: 44ch
}

.step .hint {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  opacity: .7
}

.sat .scrolly {
  grid-template-columns: minmax(0, 1.8fr) minmax(0, .62fr);
  gap: clamp(24px, 3vw, 48px)
}

.sat .step {
  opacity: .3
}

.sat .step.on {
  opacity: 1
}

.stage>.fit {
  overflow: hidden;
  border-radius: 14px
}

.prog {
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  pointer-events: none
}

.prog i {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0)
}

.kul .prog {
  position: absolute;
  left: 50%;
  bottom: 1.6vh;
  width: min(60%, 28vh);
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .12)
}

.kul .prog i {
  background: var(--k-amb)
}

.sat .prog {
  background: rgba(23, 23, 26, .1)
}

.sat .prog i {
  background: #E2BD2A
}

@media (min-width:901px) {
  .sat .prog {
    flex: none;
    width: min(100%, calc((100svh - var(--capH) - 5vh - 34px) * 1.6));
    margin: 12px auto 0
  }

  .sat .cap {
    margin-top: 16px;
    width: min(100%, calc((100svh - var(--capH) - 5vh - 34px) * 1.6))
  }
}

@media (max-width:900px) {

  .kul .prog,
  .sat .prog {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    transform: none;
    border-radius: 0
  }

  .stage {
    position: sticky
  }
}

@media (prefers-reduced-motion:reduce) {
  .prog {
    display: none
  }
}

.cap {
  display: none
}

@media (min-width:901px) {

  .sat .lead,
  .sat .facts {
    max-width: min(620px, calc(100% - min(40vw, 540px) - 56px))
  }

  .sat .scrolly {
    display: block;
    --capH: 148px
  }

  .sat .stage {
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    padding: 3vh 0 2vh
  }

  .sat .stage>.fit {
    flex: 1;
    min-height: 0
  }

  .sat .cap {
    display: grid;
    flex: none;
    height: var(--capH);
    width: min(100%, calc((100svh - var(--capH) - 5vh - 22px) * 1.6));
    margin: 22px auto 0;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    gap: 0 clamp(24px, 3vw, 56px);
    align-content: start;
    transition: opacity .25s, transform .35s var(--ease)
  }

  .sat .cap.sw {
    opacity: 0;
    transform: translateY(6px)
  }

  .sat .cap h3 {
    font-size: clamp(24px, 2.2vw, 31px);
    margin: 0 0 14px
  }

  .sat .cap p {
    margin: 0;
    max-width: 62ch
  }

  .sat .dots {
    display: flex;
    gap: 6px
  }

  .sat .dots button {
    width: 22px;
    height: 14px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    position: relative
  }

  .sat .dots button::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 6px;
    height: 2px;
    border-radius: 2px;
    background: rgba(23, 23, 26, .16);
    transition: background .3s
  }

  .sat .dots button.on::before {
    background: #C9A21F
  }

  .sat .dots button:focus-visible {
    outline: 2px solid #8A6500;
    outline-offset: 2px
  }

  .sat .steps {
    margin-top: -100svh;
    padding: 40vh 0 30vh;
    pointer-events: none
  }

  .sat .step,
  .sat .step.on {
    opacity: 0
  }
}

@media (max-width:900px) {

  .scrolly,
  .sat .scrolly {
    grid-template-columns: minmax(0, 1fr);
    gap: 0
  }

  .stage {
    height: 58svh;
    top: 0;
    padding: 10px 0 6px
  }

  .sat .stage {
    height: 50svh
  }

  .kul .stage {
    background: var(--k-bg);
    box-shadow: 0 18px 22px -12px rgba(0, 0, 0, .6)
  }

  .sat .stage {
    background: #F6F4EE;
    box-shadow: 0 18px 22px -12px rgba(0, 0, 0, .18)
  }

  .stage>.fit {
    border-radius: 10px
  }

  .steps {
    padding: 4vh 0 30vh
  }

  .step {
    min-height: 64svh;
    justify-content: flex-start;
    padding-top: 6svh
  }
}

.more {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 clamp(70px, 9vw, 120px)
}

.more h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin-bottom: 22px
}

.more ul {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  font-size: 15.5px
}

.more li {
  padding: 11px 0;
  border-top: 1px solid;
  display: flex;
  gap: 10px;
  align-items: baseline
}

@media (max-width:900px) {
  .more ul {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media (max-width:560px) {
  .more ul {
    grid-template-columns: minmax(0, 1fr)
  }
}

/* Kulisse band */
.kul {
  background: var(--k-bg);
  color: #c9c8c3
}

.kul .wm {
  color: rgba(255, 255, 255, .045)
}

.kul h2,
.kul h3 {
  color: var(--k-ink)
}

.kul .facts {
  color: var(--k-ink)
}

.kul .facts .ic {
  color: var(--k-amb)
}

.kul .more li {
  border-color: #2a2a2d
}

.kul .more li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--k-amb);
  transform: translateY(-2px)
}

.kul .btn {
  background: var(--k-amb);
  color: #1b1404;
  font-weight: 500
}

.kul .step .hint {
  color: var(--k-amb)
}

/* Satzspiegel band: paper with the type-area canon */
.sat {
  background: #F6F4EE;
  color: #4a4a50
}

.sat .wm {
  color: rgba(23, 23, 26, .045)
}

.sat h2,
.sat h3 {
  color: #17171A
}

.sat .facts {
  color: #2a2a2e
}

.sat .facts .ic {
  color: #8A6500
}

.sat .step .hint {
  color: #8A6500
}

.sat .more li {
  border-color: rgba(23, 23, 26, .12)
}

.sat .more li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: #E2BD2A;
  transform: translateY(-2px) rotate(45deg)
}

.sat .btn {
  background: #F3D54E;
  color: #1B1703;
  font-weight: 500
}

.note-s {
  position: relative;
  font-size: 13px;
  margin-top: 10px
}

.sat .note-s {
  color: #7a7a80
}

.kul .note-s {
  color: #85837d
}

.canon {
  position: absolute;
  right: max(5vw, 18px);
  top: clamp(90px, 10vw, 150px);
  width: min(40vw, 540px);
  pointer-events: none
}

.canon svg {
  width: 100%;
  height: auto;
  overflow: visible
}

.canon .pg {
  fill: #fffdf8;
  stroke: rgba(23, 23, 26, .14);
  stroke-width: 1
}

.canon .ln {
  fill: none;
  stroke: #E2BD2A;
  stroke-width: 1.2;
  stroke-dasharray: var(--dl, 1400);
  stroke-dashoffset: var(--dl, 1400);
  transition: stroke-dashoffset 2.2s var(--ease)
}

.canon .tb {
  fill: rgba(243, 213, 78, .22);
  stroke: #E2BD2A;
  stroke-width: 1.2;
  opacity: 0;
  transition: opacity 1s 1.6s
}

.canon.on .ln {
  stroke-dashoffset: 0
}

.canon.on .tb {
  opacity: 1
}

@media (max-width:900px) {
  .canon {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 520px;
    margin-top: 28px
  }
}

/* Contact (as on the website) */
.contact {
  background: var(--stone);
  text-align: center;
  padding: clamp(70px, 9vw, 120px) max(5vw, 18px)
}

.contact h2 {
  color: var(--acc);
  font-size: clamp(30px, 4.6vw, 56px)
}

.contact p {
  max-width: 580px;
  margin: 22px auto 30px;
  color: #2c3a3c
}

.btn-o {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 18px 36px;
  border: 2px solid var(--acc);
  color: var(--acc);
  font-size: 18px;
  text-decoration: none;
  transition: background .25s, color .25s;
  overflow-wrap: anywhere
}

.btn-o:hover {
  background: var(--acc);
  color: var(--stone)
}

.contact .alt {
  font-size: 14px;
  margin: 18px 0 0;
  color: #46585b
}

/* Footer, built like marcoschoppa.de */
.cta2 {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px
}

.btn-o {
  gap: 12px
}

.btn-o svg {
  width: 20px;
  height: 20px;
  flex: none
}

.foot {
  background: var(--stone);
  border-top: 2px solid #fff;
  color: var(--txt);
  font-size: 15px
}

.ft-top {
  max-width: 1360px;
  margin: 0 auto;
  padding: 56px max(5vw, 18px) 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px
}

.ft-l .logo {
  display: block;
  width: 200px;
  margin-bottom: 34px
}

.ft-l .logo svg {
  display: block;
  width: 100%;
  height: auto
}

.ft-l p {
  max-width: 690px;
  margin: 0;
  line-height: 1.55
}

.ft-l b {
  color: var(--acc)
}

.ft-r {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: none
}

.ft-r a {
  display: block;
  color: var(--txt);
  text-decoration: none;
  line-height: 1.6;
  padding: 2px 0
}

.ft-r a:hover {
  color: var(--acc);
  text-decoration: underline
}

.ft-line {
  border-top: 1px solid rgba(255, 255, 255, .7)
}

.ft-bot {
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px max(5vw, 18px) 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--acc)
}

.ft-bot small {
  font-size: 14px
}

.soc {
  display: flex;
  gap: 14px
}

.soc a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--acc)
}

.soc svg {
  width: 19px;
  height: 19px
}

.soc a:hover {
  opacity: .7
}

.foot a:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px
}

@media (max-width:700px) {
  .ft-top {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 44px
  }

  .ft-bot {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 8px
  }

  .cta2 .btn-o {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    overflow-wrap: normal;
    font-size: 16px;
    padding: 16px 18px
  }
}

/* ===================== KULISSE RECONSTRUCTION (after Kulisse, 2026-11-16) ===================== */
.phone {
  width: 414px;
  height: 868px;
  border-radius: 64px;
  background: #19191b;
  padding: 12px;
  box-shadow: inset 0 0 0 2px #36363a, 0 50px 90px rgba(0, 0, 0, .45), 0 10px 24px rgba(0, 0, 0, .3)
}

.scr {
  --bg: #0d0d0e;
  --s1: #161617;
  --s2: #1f1f21;
  --s3: #2a2a2d;
  --s4: #36363a;
  --ln: rgba(255, 255, 255, .075);
  --ln2: rgba(255, 255, 255, .13);
  --t1: #f1f0ec;
  --t2: #a7a59f;
  --t3: #6c6a66;
  --ac: #ffb547;
  --ac-ink: #1c1203;
  --snap: #ff3da5;
  text-align: left;
  position: relative;
  width: 390px;
  height: 844px;
  border-radius: 52px;
  overflow: hidden;
  background: var(--bg);
  color: var(--t1);
  font: 400 13px/1.3 'Instrument Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none
}

.scr svg.k {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none
}

.island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 118px;
  height: 34px;
  margin-left: -59px;
  border-radius: 20px;
  background: #000;
  z-index: 30
}

.sbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 34px 0 40px;
  font-weight: 600;
  font-size: 15px;
  z-index: 29
}

.sbar i {
  display: flex;
  gap: 6px;
  align-items: center
}

.kscene {
  position: absolute;
  inset: 54px 0 0 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s, visibility 0s .5s;
  overflow: hidden;
  background: var(--bg) radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1.4px) 0 0/12px 12px
}

.kscene.on {
  opacity: 1;
  visibility: visible;
  transition: opacity .5s
}

.mono {
  font-family: 'KMono', ui-monospace, monospace
}

/* Editor top bar */
.ktop {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 10px 0 12px;
  background: var(--bg);
  z-index: 6
}

.ktop .k {
  margin: 0 6px
}

.ktop .k.dim {
  opacity: .35
}

.ktop .t {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--t2);
  margin: 0 6px;
  max-width: 38px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.ktop .exp {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px 0 13px;
  border-radius: 18px;
  background: var(--ac);
  color: var(--ac-ink);
  font-weight: 600;
  font-size: 15px
}

.ktop .exp svg.k {
  width: 18px;
  height: 18px
}

/* Small bar below the canvas */
.kmini {
  position: absolute;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 6px;
  border-radius: 12px;
  background: var(--s1);
  z-index: 5;
  transition: top .7s var(--ease)
}

.kmini span {
  height: 28px;
  min-width: 28px;
  display: grid;
  place-items: center;
  color: var(--t1);
  font-size: 13px;
  font-weight: 600;
  padding: 0 3px
}

.kmini span.mag {
  background: #3a2a10;
  border-radius: 8px;
  color: var(--ac)
}

.kmini span.dim {
  color: var(--t3)
}

.kmini svg.k {
  width: 19px;
  height: 19px
}

.kmini .aa {
  position: relative;
  font-size: 15px;
  font-weight: 500
}

.kmini .aa::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 3'%3E%3Cpath d='M0 2.5 2 .5l2 2 2-2 2 2' fill='none' stroke='%23ff6159' stroke-width='1'/%3E%3C/svg%3E") 0 0/8px 3px repeat-x
}

/* Bottom toolbar */
.ktools {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  display: flex;
  align-items: stretch;
  background: var(--bg);
  border-top: 1px solid var(--ln);
  z-index: 7;
  padding: 0 6px 6px
}

.ktools span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10.5px;
  white-space: nowrap;
  color: var(--t2);
  position: relative
}

.ktools span.on {
  color: var(--ac)
}

.ktools span.on::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 24px;
  height: 2px;
  margin-left: -12px;
  border-radius: 2px;
  background: var(--ac)
}

.ktools span.ch {
  flex: .35;
  color: var(--t3)
}

.ktools svg.k {
  width: 21px;
  height: 21px
}

/* Control panel (bottom sheet) */
.ksheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 64px;
  background: #1b1b1d;
  border-radius: 18px 18px 0 0;
  padding: 8px 16px 12px;
  z-index: 6;
  transition: transform .7s var(--ease)
}

.ksheet .grab {
  width: 38px;
  height: 4px;
  border-radius: 3px;
  background: #3a3a3e;
  margin: 0 auto 12px
}

.ksheet h5 {
  margin: 0 0 12px;
  font-size: 15.5px;
  font-weight: 600;
  display: flex;
  align-items: center
}

.ksheet h5 svg.k {
  margin-left: auto;
  width: 21px;
  height: 21px
}

.ksheet h6 {
  margin: 14px 0 8px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: baseline
}

.ksheet h6 span {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--t3)
}

.ksheet p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--t3)
}

.kseg {
  display: flex;
  background: var(--s2);
  border-radius: 11px;
  padding: 3px;
  gap: 2px
}

.kseg span {
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  padding: 7px 0;
  border-radius: 8px;
  color: var(--t2);
  transition: background .3s, color .3s
}

.kseg span.on {
  background: var(--s4);
  color: var(--t1);
  font-weight: 600
}

.ksl {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  height: 32px;
  font-size: 12.5px;
  color: var(--t2)
}

.ksl .tr {
  position: relative;
  height: 3px;
  border-radius: 2px;
  background: #3a3a3e
}

.ksl .tr b {
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  border-radius: 2px;
  background: #e9e7e2
}

.ksl .tr i {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .5)
}

.ksl em {
  font-style: normal;
  text-align: right;
  color: var(--t1);
  font-variant-numeric: tabular-nums
}

.ksl.c .tr b {
  display: none
}

.ktog {
  margin-left: auto;
  width: 38px;
  height: 22px;
  border-radius: 12px;
  background: #3a3a3e;
  position: relative;
  transition: background .3s;
  flex: none
}

.ktog::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .3s var(--ease)
}

.ktog.on {
  background: var(--ac)
}

.ktog.on::after {
  transform: translateX(16px)
}

.krow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px
}

.ktoast {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -8px);
  white-space: nowrap;
  background: #f1f0ec;
  color: #18171a;
  font-weight: 600;
  font-size: 12.5px;
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
  opacity: 0;
  transition: opacity .4s, transform .5s var(--ease);
  z-index: 8
}

.ktoast.in {
  opacity: 1;
  transform: translate(-50%, 0)
}

.ktoast.dark {
  background: #232325;
  color: var(--t1);
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 500
}

/* Start screen */
.kh-glow {
  position: absolute;
  left: -40px;
  right: -40px;
  top: -40px;
  height: 520px;
  overflow: hidden;
  filter: blur(40px) saturate(1.25) brightness(.6)
}

.kh-glow .tpl {
  transform: scale(1.9);
  transform-origin: 0 0;
  left: -30px;
  top: -20px;
  transition: opacity 1s
}

.kh-top {
  position: absolute;
  top: 0;
  left: 16px;
  right: 14px;
  height: 52px;
  display: flex;
  align-items: center;
  z-index: 2
}

.kh-word {
  font: 900 25px/1 'KDot', monospace;
  letter-spacing: .07em
}

.kh-top .ic3 {
  margin-left: auto;
  display: flex;
  gap: 24px
}

.kh-bars {
  position: absolute;
  top: 56px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 2
}

.kh-bars i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .26);
  overflow: hidden
}

.kh-bars b {
  display: block;
  height: 100%;
  width: 0;
  background: #fff
}

.kh-card {
  position: absolute;
  top: 74px;
  left: 50%;
  width: 202px;
  height: 358px;
  margin-left: -101px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
  z-index: 2
}

.kh-card .tpl {
  transform: scale(.7482);
  transform-origin: 0 0;
  opacity: 0;
  transition: opacity .7s
}

.kh-card .tpl.on {
  opacity: 1
}

.kh-meta {
  position: absolute;
  top: 448px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  z-index: 2
}

.kh-meta .l {
  flex: 1;
  min-width: 0
}

.kh-meta small {
  display: block;
  font: 500 11px/1 'KMono', monospace;
  letter-spacing: .14em;
  color: var(--ac);
  margin-bottom: 8px;
  white-space: nowrap
}

.kh-meta b {
  display: block;
  font-weight: 600;
  font-size: 18.5px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.kh-take {
  height: 38px;
  padding: 0 17px;
  border-radius: 19px;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13);
  font-weight: 600;
  font-size: 15px;
  display: grid;
  place-items: center;
  flex: none
}

.kh-all {
  font: 500 11.5px 'KMono', monospace;
  letter-spacing: .1em;
  color: var(--t2);
  padding-bottom: 12px;
  flex: none
}

.kh-dial {
  position: absolute;
  top: 516px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  z-index: 2
}

.kh-dial span {
  font: 400 12.5px/1 'KMono', monospace;
  color: var(--t2);
  padding: 6px 5px 10px;
  position: relative;
  cursor: pointer;
  transition: color .3s;
  letter-spacing: .04em
}

.kh-dial span.on {
  color: var(--ac)
}

.kh-dial span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 3px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--ac);
  transform: scaleX(0);
  transition: transform .35s var(--ease)
}

.kh-dial span.on::after {
  transform: none
}

.kh-ruler {
  position: absolute;
  top: 548px;
  left: 16px;
  right: 16px;
  height: 13px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 8.1px)
}

.kh-neu {
  position: absolute;
  top: 573px;
  left: 50%;
  width: 140px;
  height: 140px;
  margin-left: -70px
}

.kh-neu svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: kspin 40s linear infinite
}

@keyframes kspin {
  to {
    transform: rotate(360deg)
  }
}

.kh-neu b {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--ac);
  color: var(--ac-ink);
  display: grid;
  place-items: center;
  font: 900 35px/1 'KDot', monospace;
  letter-spacing: .04em;
  box-shadow: 0 0 40px rgba(255, 181, 71, .25);
  padding-left: 3px
}

.kh-cap {
  position: absolute;
  top: 718px;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 600;
  font-size: 15.5px;
  z-index: 2
}

.kh-cap small {
  font: 400 12px 'KMono', monospace;
  color: var(--t2);
  letter-spacing: .04em
}

.kh-quick {
  position: absolute;
  top: 756px;
  left: 16px;
  right: 16px;
  font-weight: 600;
  font-size: 15.5px
}

.kh-quick div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px
}

.kh-quick i {
  height: 70px;
  border-radius: 14px;
  background: var(--s1);
  box-shadow: inset 0 0 0 1px var(--ln)
}

/* Canvas */
.kart {
  position: absolute;
  left: 50%;
  top: 60px;
  width: 270px;
  height: 480px;
  margin-left: -135px;
  transform-origin: 50% 0;
  transition: transform .7s var(--ease);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04);
  overflow: hidden
}

.tpl {
  position: absolute;
  left: 0;
  top: 0;
  width: 270px;
  height: 480px;
  overflow: hidden;
  background: #eee
}

.tpl .a {
  position: absolute
}

.guide {
  position: absolute;
  background: var(--snap);
  opacity: 0;
  transition: opacity .15s;
  z-index: 8;
  pointer-events: none
}

.guide.v {
  top: 0;
  bottom: 0;
  width: 1px
}

.guide.h {
  left: 0;
  right: 0;
  height: 1px
}

.guide.on {
  opacity: 1
}

.gtag {
  position: absolute;
  font-size: 8px;
  font-weight: 600;
  color: #fff;
  background: var(--snap);
  padding: 1px 4px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity .15s;
  z-index: 9;
  white-space: nowrap
}

.gtag.on {
  opacity: 1
}

.sel {
  position: absolute;
  outline: 1px solid var(--ac);
  z-index: 7;
  cursor: grab;
  touch-action: none
}

.sel::before,
.sel::after,
.sel i::before,
.sel i::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: #fff;
  border: 1px solid var(--ac);
  border-radius: 50%
}

.sel::before {
  left: -3px;
  top: -3px
}

.sel::after {
  right: -3px;
  top: -3px
}

.sel i::before {
  left: -3px;
  bottom: -3px
}

.sel i::after {
  right: -3px;
  bottom: -3px
}

.sel.bump {
  animation: bump .22s
}

@keyframes bump {
  50% {
    transform: scale(1.06)
  }
}

.ksearch {
  height: 38px;
  border-radius: 11px;
  background: #262628;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--t3);
  font-size: 13px
}

.ksearch svg.k {
  width: 18px;
  height: 18px
}

.kbasic {
  display: flex;
  gap: 9px;
  margin-top: 12px;
  align-items: center
}

.kbasic i {
  width: 58px;
  height: 58px;
  border-radius: 11px;
  background: #262628;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-style: normal;
  font-size: 10.5px;
  color: var(--t2)
}

.kbasic i u {
  display: block;
  width: 22px;
  height: 22px;
  background: #f1f0ec;
  border-radius: 50%
}

.kbasic i u.r {
  border-radius: 2px;
  width: 26px;
  height: 18px
}

.kbasic div {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3
}

.kbasic div span {
  display: block;
  font-weight: 400;
  color: var(--t3);
  font-size: 11px
}

.krow6 {
  display: flex;
  gap: 9px;
  overflow: hidden
}

.krow6 i {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 11px;
  background: #e9e5dd;
  display: grid;
  place-items: center;
  position: relative;
  transition: box-shadow .3s, transform .3s
}

.krow6 i.on {
  box-shadow: 0 0 0 2.5px var(--ac);
  transform: scale(.95)
}

.krow6 i svg {
  width: 44px;
  height: 44px
}

.krow6.tex i {
  display: block;
  background: #333 center/cover;
  overflow: hidden
}

.krow6.tex i b {
  position: absolute;
  left: 6px;
  right: 4px;
  bottom: 5px;
  font-size: 10.5px;
  line-height: 1.1;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55)
}

.krow6.tex i::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='%23fff'/%3E%3C/svg%3E") center/11px no-repeat
}

.kchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 13px 0 9px;
  border-radius: 17px;
  background: var(--s2);
  font-size: 13px
}

.kchip i {
  width: 18px;
  height: 18px;
  border-radius: 50%
}

.kchip.kvar {
  margin-left: auto;
  cursor: pointer;
  transition: background .2s
}

.kchip.kvar.hit {
  background: #3a3020
}

.kchip.kvar svg.k {
  width: 19px;
  height: 19px;
  transition: transform .5s var(--ease)
}

/* Photo */
.kph {
  position: absolute;
  left: 50%;
  top: 58px;
  width: 252px;
  height: 336px;
  margin-left: -126px;
  overflow: hidden;
  background: #fff
}

.kph>* {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.kph .bg {
  transition: filter .6s, opacity .6s
}

.kph .word {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 58px;
  font: 700 64px/1 'Instrument Sans', sans-serif;
  letter-spacing: -.02em;
  color: #ffcf85;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s, transform .6s var(--ease)
}

.kph .word.on {
  opacity: 1;
  transform: none
}

.kph .scan {
  background: linear-gradient(90deg, transparent, rgba(255, 220, 150, 0) 30%, rgba(255, 220, 150, .45) 50%, transparent 70%);
  transform: translateX(-100%);
  opacity: 0
}

.kph .scan.go {
  opacity: 1;
  transition: transform 1.3s linear;
  transform: translateX(100%)
}

.kph .cut {
  transition: filter .5s
}

.kph .cut.glow {
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 7px rgba(255, 181, 71, .9))
}

.kfx {
  position: absolute;
  left: 50%;
  top: 58px;
  width: 216px;
  height: 288px;
  margin-left: -108px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: ew-resize
}

.kfx img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.kfx .auto,
.kfx .after {
  clip-path: inset(0 0 0 var(--cut, 0%))
}

.kseg u {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ac);
  margin-left: 5px;
  vertical-align: 2px;
  opacity: 0;
  transition: opacity .3s
}

.kreset {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--t1);
  opacity: 0;
  transition: opacity .3s
}

.kfx .line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--cut, 0%);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, .5);
  opacity: var(--lo, 0);
  transition: opacity .4s
}

.kfx .line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l-5 5 5 5V7zm6 0v10l5-5-5-5z' fill='%23222'/%3E%3C/svg%3E") center/17px no-repeat;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4)
}

.kfx .tag {
  position: absolute;
  top: 10px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 9px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  opacity: var(--lo, 0);
  transition: opacity .4s
}

.kfx .tag.l {
  left: 10px
}

.kfx .tag.r {
  right: 10px
}

.kauto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 15px 0 12px;
  border-radius: 17px;
  background: var(--ac);
  color: var(--ac-ink);
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 12px;
  transition: transform .2s
}

.kauto.hit {
  transform: scale(.94)
}

.kauto svg.k {
  width: 18px;
  height: 18px
}

/* Textures */
.ktex {
  position: absolute;
  left: 50%;
  top: 58px;
  width: 270px;
  height: 480px;
  margin-left: -135px;
  transform: scale(.4185);
  transform-origin: 50% 0;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .55);
  overflow: hidden;
  background: #eee9df
}

.ktex canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%
}

/* Video */
.kvid {
  position: absolute;
  left: 50%;
  top: 58px;
  width: 252px;
  height: 448px;
  margin-left: -126px;
  transform: scale(.67);
  transform-origin: 50% 0;
  overflow: hidden;
  background: #000
}

.kvid .clip {
  position: absolute;
  inset: -6%;
  background: center/cover;
  will-change: transform, opacity, filter
}

.kvid .ttl {
  position: absolute;
  left: 0;
  right: 0;
  top: 120px;
  text-align: center;
  font: 700 38px/1.02 'Instrument Sans', sans-serif;
  color: #fff;
  letter-spacing: -.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35)
}

.kvid .ttl span {
  display: inline-block;
  opacity: 0
}

.kvid .sub {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 44px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35
}

.kvid .sub span {
  background: rgba(0, 0, 0, .62);
  padding: 2px 5px;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: #fff;
  opacity: .35;
  transition: opacity .15s
}

.kvid .sub span.on {
  opacity: 1
}

.kvid .sub span.now {
  color: var(--ac)
}

.kvid .flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none
}

.ktl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 64px;
  height: 322px;
  background: #161617;
  border-radius: 18px 18px 0 0
}

.ktl .grab {
  width: 38px;
  height: 4px;
  border-radius: 3px;
  background: #3a3a3e;
  margin: 6px auto 0
}

.ktl-c {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 14px;
  color: var(--t3)
}

.ktl-c .pl {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #3a2a10;
  display: grid;
  place-items: center;
  color: var(--ac)
}

.ktl-c .pl svg {
  width: 16px;
  height: 16px;
  fill: var(--ac)
}

.ktl-c .tc {
  font-size: 12px;
  color: var(--t1);
  font-weight: 600;
  font-variant-numeric: tabular-nums
}

.ktl-c .tc small {
  color: var(--t3);
  font-weight: 400
}

.ktl-c .r {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--t1)
}

.ktl-c .r .am {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #3a2a10;
  color: var(--ac);
  display: grid;
  place-items: center
}

.ktl-c svg.k {
  width: 19px;
  height: 19px
}

.ktl-area {
  position: absolute;
  left: 0;
  right: 0;
  top: 54px;
  bottom: 0;
  overflow: hidden
}

.ruler {
  position: absolute;
  left: 44px;
  right: 16px;
  top: 0;
  height: 20px;
  font-size: 9.5px;
  color: var(--t2);
  font-weight: 600
}

.ruler i {
  position: absolute;
  top: 13px;
  width: 1px;
  height: 6px;
  background: #555
}

.ruler span {
  position: absolute;
  top: 0;
  transform: translateX(-50%)
}

.kadd {
  position: absolute;
  left: 52px;
  top: 28px;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--s2);
  font-size: 11px;
  color: var(--t2)
}

.kadd svg.k {
  width: 14px;
  height: 14px
}

.trk {
  position: absolute;
  left: 44px;
  right: 16px
}

.trk.t {
  top: 62px;
  height: 24px
}

.trk.t i {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 6px;
  background: #5a4b93;
  color: #ece8ff;
  font-size: 9.5px;
  font-weight: 600;
  font-style: normal;
  display: flex;
  align-items: center;
  padding-left: 7px;
  white-space: nowrap;
  overflow: hidden
}

.trk.v {
  top: 94px;
  height: 50px
}

.trk.v .c {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 7px;
  background: center/auto 100% repeat-x;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
  overflow: hidden
}

.trk.v .c b {
  position: absolute;
  left: 6px;
  top: 4px;
  font-size: 9.5px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7)
}

.trk.v .x {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  background: #fff;
  border-radius: 6px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px #161617
}

.trk.v .x svg.k {
  width: 12px;
  height: 12px;
  stroke: #161617;
  stroke-width: 2.4
}

.trk.m {
  top: 152px;
  height: 28px;
  border-radius: 7px;
  background: #2c4d7c;
  overflow: hidden
}

.trk.m svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%
}

.trk.m b {
  position: absolute;
  left: 8px;
  top: 7px;
  font-size: 9.5px;
  font-weight: 600;
  color: #e6efff;
  display: flex;
  gap: 4px;
  align-items: center
}

.tside {
  position: absolute;
  left: 14px;
  color: var(--t3)
}

.tside svg.k {
  width: 18px;
  height: 18px
}

.phd {
  position: absolute;
  top: 2px;
  height: 186px;
  width: 2px;
  margin-left: -1px;
  background: var(--ac);
  z-index: 4
}

.khint {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  color: var(--t2);
  white-space: nowrap;
  overflow: hidden
}

.khint i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  flex: none
}

/* =================== SATZSPIEGEL RECONSTRUCTION (after Satzspiegel 1.5.3) =================== */
.ss {
  text-align: left;
  --bg0: #0E0F11;
  --bg1: #16171A;
  --bg2: #1F2125;
  --bg3: #2A2D32;
  --bg4: #3A3E45;
  --mat: #25272B;
  --on: #ECEDEF;
  --dim: #A8ACB4;
  --faint: #70747C;
  --ac: #F3D54E;
  --acs: rgba(243, 213, 78, .13);
  --paper: #FFFDF8;
  --ink: #17171A;
  --ok: #78DDA0;
  --bad: #FF7B6E;
  --pop: 0 2px 6px rgba(0, 0, 0, .4), 0 18px 44px rgba(0, 0, 0, .42);
  width: 1440px;
  height: 900px;
  border-radius: 14px;
  background: var(--bg0);
  color: var(--on);
  font: 400 13px/1.35 'Bricolage Grotesque', system-ui, sans-serif;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 40px 90px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .07);
  -webkit-font-smoothing: antialiased;
  user-select: none
}

.ss svg.m {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none;
  display: block
}

.ss .num {
  font-variant-numeric: tabular-nums
}

.s-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 12px
}

.s-logo {
  color: var(--ac);
  width: 22px;
  height: 22px;
  margin-right: 8px
}

.s-doc {
  font-weight: 650;
  font-size: 13.5px
}

.s-doc small {
  font-weight: 400;
  color: var(--faint);
  font-size: 12px
}

.s-save {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 99px;
  color: var(--dim);
  font-size: 12px;
  margin-left: 10px;
  transition: background .4s
}

.s-save svg.m {
  width: 15px;
  height: 15px;
  color: var(--ok)
}

.s-save.pulse {
  background: rgba(120, 221, 160, .2)
}

.s-acts {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px
}

.s-ib {
  width: 34px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--dim)
}

.s-ib.on {
  background: var(--acs);
  color: var(--ac)
}

.s-ib svg.m {
  width: 19px;
  height: 19px
}

.s-exp {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 15px 0 12px;
  border-radius: 99px;
  background: var(--ac);
  color: #1B1703;
  font-weight: 600;
  margin-left: 8px
}

.s-exp svg.m {
  width: 17px;
  height: 17px
}

.s-rail {
  position: absolute;
  left: 0;
  top: 40px;
  bottom: 30px;
  width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 6px
}

.s-rail i {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--dim);
  transition: background .3s, color .3s, border-radius .3s
}

.s-rail i.on {
  background: var(--ac);
  color: #1B1703;
  border-radius: 18px
}

.s-rail i.sp {
  margin-top: auto
}

.s-panel {
  position: absolute;
  left: 48px;
  top: 40px;
  bottom: 30px;
  width: 304px;
  background: var(--bg1);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .6s var(--ease), opacity .4s
}

.s-pane {
  position: absolute;
  inset: 0;
  padding: 14px 12px;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity .4s, transform .55s var(--ease);
  pointer-events: none
}

.s-pane.on {
  opacity: 1;
  transform: none
}

.s-pane h4 {
  margin: 6px 4px 14px;
  font-size: 16px;
  font-weight: 650;
  display: flex;
  align-items: center
}

.s-pane h4 small {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--faint)
}

.s-pane h4 svg.m {
  margin-left: 12px;
  width: 18px;
  height: 18px;
  color: var(--dim)
}

.s-stage {
  position: absolute;
  left: 358px;
  right: 8px;
  top: 40px;
  bottom: 30px;
  background: var(--mat);
  border-radius: 18px;
  overflow: hidden;
  transition: left .6s var(--ease)
}

.ss.nopanel .s-stage {
  left: 48px
}

.ss.nopanel .s-panel {
  transform: translateX(-24px);
  opacity: 0
}

.s-strip {
  position: absolute;
  right: 6px;
  top: 10px;
  bottom: 10px;
  width: 12px;
  z-index: 4
}

.s-strip i {
  position: absolute;
  right: 0;
  width: 6px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, .14)
}

.s-strip u {
  position: absolute;
  right: 0;
  width: 9px;
  height: 3px;
  border-radius: 1px;
  opacity: 0;
  transition: opacity .5s
}

.ss.lupe .s-strip u {
  opacity: 1
}

.s-strip b {
  position: absolute;
  right: 1px;
  width: 9px;
  height: 26px;
  border-radius: 5px;
  background: var(--bg4);
  top: 18%
}

.s-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 14px;
  font-size: 11.5px;
  color: var(--dim)
}

.s-status b {
  color: var(--on);
  font-weight: 600
}

.s-status .day {
  display: flex;
  align-items: center;
  gap: 8px
}

.s-status .day i {
  width: 54px;
  height: 4px;
  border-radius: 2px;
  background: var(--bg3);
  overflow: hidden
}

.s-status .day i u {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ac);
  transition: width .4s
}

.s-status .fmt {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--on);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 7px;
  transition: background .3s
}

.s-status .fmt.on {
  background: var(--bg3)
}

.s-status .fmt svg.m {
  width: 16px;
  height: 16px;
  color: var(--dim)
}

.s-status .zm {
  display: flex;
  align-items: center;
  gap: 12px
}

/* Floating toolbar */
.s-tools {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  height: 36px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
  border-radius: 18px;
  background: var(--bg0);
  box-shadow: var(--pop);
  z-index: 6;
  color: var(--on)
}

.s-tools .ty {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 8px;
  font-weight: 600;
  font-size: 12.5px;
  width: 112px;
  justify-content: space-between
}

.s-tools .ty svg.m {
  width: 16px;
  height: 16px;
  color: var(--dim)
}

.s-tools i {
  width: 32px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--on)
}

.s-tools i.dim {
  color: var(--faint)
}

.s-tools i.on {
  background: var(--acs);
  color: var(--ac)
}

.s-tools i svg.m {
  width: 18px;
  height: 18px
}

.s-tools s {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, .12);
  margin: 0 4px
}

/* Pages */
.s-pages {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  transition: transform 1s var(--ease), opacity .5s
}

.s-pg {
  position: absolute;
  left: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px rgba(0, 0, 0, .28);
  transition: width .9s var(--ease), height .9s var(--ease), top .9s var(--ease), opacity .4s
}

.s-pg .txt {
  position: absolute;
  overflow: hidden;
  transition: left .9s var(--ease), right .9s var(--ease), top .9s var(--ease), height .9s var(--ease)
}

.s-pg .fo {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font: 400 12px/1 Literata, serif;
  color: #6a6a70;
  transition: bottom .9s var(--ease)
}

.ss.one .s-pg.p2 {
  opacity: 0
}

.flow {
  font: 400 17px/22.5px Literata, Georgia, serif;
  color: #1a1a1d;
  hyphens: auto;
  -webkit-hyphens: auto
}

.flow h3 {
  margin: 0;
  height: 112.5px;
  padding-top: 45px;
  font: 700 26px/45px Literata, serif;
  color: #141416;
  letter-spacing: -.005em
}

.flow p {
  margin: 0 0 11.25px
}

.caret {
  display: inline-block;
  width: 1.5px;
  height: 20px;
  background: #1a1a1d;
  vertical-align: -4px;
  margin-left: 1px;
  animation: blink 1s steps(1) infinite
}

@keyframes blink {
  50% {
    opacity: 0
  }
}

.lu {
  border-radius: 2px;
  transition: background .5s
}

.ss.lupe .lu.y {
  background: #F6DC62
}

.ss.lupe .lu.p {
  background: #FF9DCB
}

.ss.lupe .lu.b {
  background: #8FD8F5
}

.ss.lupe .lu.g {
  background: #A9E98A
}

.nt {
  transition: background .6s, box-shadow .6s
}

.nt.on {
  background: rgba(255, 111, 174, .16);
  box-shadow: inset 0 -1.5px #FF6FAE
}

.s-anc {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg3);
  display: grid;
  place-items: center;
  color: var(--dim);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .4s, transform .5s var(--ease)
}

.s-anc.in {
  opacity: 1;
  transform: none
}

.s-anc svg.m {
  width: 13px;
  height: 13px
}

.s-note {
  position: absolute;
  width: 232px;
  padding: 11px 12px 10px 15px;
  border-radius: 12px;
  background: var(--bg2);
  box-shadow: var(--pop);
  font-size: 12.5px;
  line-height: 1.42;
  color: var(--on);
  opacity: 0;
  transform: translateX(16px);
  transition: opacity .5s, transform .7s var(--ease);
  z-index: 5
}

.s-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: #FF6FAE
}

.s-note small {
  display: block;
  margin-top: 6px;
  color: var(--faint);
  font-size: 10.5px
}

.s-note.in {
  opacity: 1;
  transform: none
}

/* Chapters */
.s-chap {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 48px;
  align-items: center;
  column-gap: 4px;
  padding: 7px 8px 6px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 1px
}

.s-chap em {
  font-style: normal;
  color: var(--faint);
  font-size: 11px;
  text-align: right;
  font-weight: 400
}

.s-chap span {
  color: var(--on)
}

.s-chap u {
  grid-column: 2/4;
  height: 2.5px;
  border-radius: 2px;
  background: var(--bg4);
  margin-top: 6px;
  text-decoration: none
}

.s-chap u b {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: #6b6f77
}

.s-chap var {
  font-style: normal;
  font-size: 11px;
  color: var(--dim);
  text-align: right;
  font-weight: 400
}

.s-chap.on {
  background: #2b2a1f
}

.s-chap.on span {
  color: var(--ac)
}

.s-chap.on u b {
  background: var(--ac)
}

.s-add {
  position: absolute;
  left: 12px;
  bottom: 46px;
  height: 32px;
  padding: 0 14px 0 10px;
  border-radius: 16px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 12.5px
}

.s-add svg.m {
  width: 17px;
  height: 17px
}

.s-foot {
  position: absolute;
  left: 14px;
  bottom: 16px;
  font-size: 11.5px;
  color: var(--faint)
}

/* Magnifier (Lupe) */
.s-in {
  height: 36px;
  border-radius: 11px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--faint);
  font-size: 13px;
  margin-bottom: 12px
}

.s-in svg.m {
  width: 17px;
  height: 17px
}

.s-lrow {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  column-gap: 10px;
  row-gap: 3px;
  padding: 9px 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s, transform .5s var(--ease)
}

.s-lrow.in {
  opacity: 1;
  transform: none
}

.s-lrow>i {
  grid-row: 1/3;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  margin-top: 2px
}

.s-lrow b {
  font-weight: 650;
  font-size: 13.5px
}

.s-lrow .ac {
  display: flex;
  gap: 9px;
  color: var(--dim)
}

.s-lrow .ac svg.m {
  width: 16px;
  height: 16px
}

.s-lrow small {
  grid-column: 2/4;
  font-size: 11px;
  color: var(--dim);
  display: flex;
  gap: 8px;
  align-items: center
}

.vd {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px
}

.vd.b {
  background: rgba(255, 123, 110, .22);
  color: #FF8E84
}

.vd.d {
  background: rgba(255, 178, 89, .2);
  color: #FFC072
}

.vd.l {
  background: rgba(120, 221, 160, .2);
  color: #8FE6B0
}

.s-syn {
  position: absolute;
  width: 480px;
  padding: 12px 10px 10px;
  border-radius: 16px;
  background: var(--bg1);
  box-shadow: var(--pop);
  z-index: 8;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s, transform .45s var(--ease);
  color: var(--on)
}

.s-syn.in {
  opacity: 1;
  transform: none
}

.s-syn h6 {
  margin: 2px 6px 10px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  gap: 8px;
  align-items: baseline
}

.s-syn h6 small {
  font-weight: 400;
  color: var(--faint);
  font-size: 12px
}

.s-syn h6 svg.m {
  margin-left: auto;
  width: 17px;
  height: 17px;
  color: var(--dim);
  align-self: center
}

.s-syn .g {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px;
  border-radius: 12px;
  background: var(--bg2);
  margin-bottom: 8px
}

.s-syn .g:last-child {
  margin: 0
}

.s-syn span {
  font-size: 12.5px;
  line-height: 1.2;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--bg3);
  color: var(--on);
  transition: box-shadow .25s
}

.s-syn span.y {
  background: var(--ac);
  color: #1B1703;
  font-weight: 600
}

.s-syn span.o {
  background: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  color: var(--dim)
}

.s-syn span.d {
  text-decoration: underline dotted rgba(255, 255, 255, .45);
  text-underline-offset: 3px
}

.s-syn span em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--faint);
  margin-left: 5px
}

.s-syn span.hv {
  box-shadow: 0 0 0 2px #fff
}

.syw {
  border-radius: 2px;
  transition: background 1.4s;
  hyphens: none;
  -webkit-hyphens: none
}

.syw.pick {
  background: #cfe3f7;
  transition: none
}

.syw.new {
  background: rgba(243, 213, 78, .6);
  transition: none
}

/* Cards */
.s-tabs {
  display: flex;
  background: var(--bg2);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 12px
}

.s-tabs span {
  flex: 1;
  text-align: center;
  font-size: 12px;
  padding: 6px 0;
  border-radius: 8px;
  color: var(--dim)
}

.s-tabs span.on {
  background: var(--bg4);
  color: var(--on);
  font-weight: 600
}

.s-krow {
  display: flex;
  align-items: center;
  margin-bottom: 12px
}

.s-kadd {
  height: 30px;
  padding: 0 13px 0 9px;
  border-radius: 15px;
  background: var(--ac);
  color: #1B1703;
  font-weight: 600;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 5px
}

.s-kadd svg.m {
  width: 17px;
  height: 17px
}

.s-krow svg.m {
  margin-left: auto;
  color: var(--dim);
  width: 18px;
  height: 18px
}

.s-card {
  position: relative;
  padding: 11px 12px 10px;
  border-radius: 12px;
  background: var(--bg2);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s, transform .5s var(--ease)
}

.s-card.in {
  opacity: 1;
  transform: none
}

.s-card b {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  margin-bottom: 4px
}

.s-card p {
  margin: 0 0 9px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--on)
}

.s-card p.ph {
  color: var(--faint)
}

.s-card small {
  font-size: 10.5px;
  color: var(--dim);
  background: var(--bg3);
  padding: 3px 7px;
  border-radius: 6px
}

.s-card i {
  position: absolute;
  right: 12px;
  bottom: 11px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--faint)
}

.s-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 2px;
  background: var(--cc, transparent)
}

/* Second layer */
.s-under {
  position: absolute;
  inset: 0;
  background: rgba(14, 15, 17, .55);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
  z-index: 7
}

.ss.under .s-under {
  opacity: 1
}

.s-usheet {
  position: absolute;
  z-index: 8;
  background: #FBF3E2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .45);
  transform: scale(.6);
  opacity: 0;
  filter: blur(6px);
  transition: transform .7s var(--ease), opacity .5s, filter .7s
}

.ss.under .s-usheet {
  transform: none;
  opacity: 1;
  filter: none
}

.s-ghost {
  position: absolute;
  opacity: .07;
  filter: blur(1.2px);
  pointer-events: none;
  transition: opacity .8s
}

.s-utext {
  position: absolute;
  font: 400 17px/22.5px Literata, serif;
  color: #2a2418
}

.s-ubar {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 20px);
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 10px;
  border-radius: 20px;
  background: var(--bg0);
  box-shadow: var(--pop);
  opacity: 0;
  transition: opacity .5s, transform .6s var(--ease);
  white-space: nowrap;
  z-index: 9
}

.ss.under .s-ubar {
  opacity: 1;
  transform: translate(-50%, 0)
}

.s-ubar .nm {
  line-height: 1.1
}

.s-ubar .nm b {
  display: block;
  color: #D9A441;
  font-size: 12px;
  font-weight: 650
}

.s-ubar .nm small {
  font-size: 10px;
  color: var(--faint)
}

.s-ubar s {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, .12)
}

.s-ubar .md {
  display: flex;
  background: var(--bg2);
  border-radius: 9px;
  padding: 3px
}

.s-ubar .md span {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 7px;
  color: var(--dim);
  transition: background .3s, color .3s
}

.s-ubar .md span.on {
  background: var(--bg4);
  color: var(--on);
  font-weight: 600
}

.s-ubar .rg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--dim)
}

.s-ubar .rg i {
  width: 84px;
  height: 4px;
  border-radius: 2px;
  background: var(--bg4);
  position: relative
}

.s-ubar .rg i b {
  position: absolute;
  top: -5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #D9A441;
  margin-left: -7px;
  transition: left .5s var(--ease)
}

.s-ubar .go {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 12px;
  padding: 0 10px;
  height: 28px;
  border-radius: 14px;
  background: var(--bg2)
}

.s-ubar svg.m {
  width: 17px;
  height: 17px;
  color: var(--dim)
}

/* Stats */
.s-z {
  padding: 14px;
  border-radius: 14px;
  background: var(--bg2);
  margin-bottom: 10px
}

.s-zt {
  display: flex;
  align-items: center;
  gap: 20px
}

.s-ring {
  width: 84px;
  height: 84px;
  position: relative;
  flex: none
}

.s-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg)
}

.s-ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-align: center
}

.s-ring b small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: var(--faint);
  margin-top: 3px
}

.s-big {
  font-size: 30px;
  font-weight: 700;
  line-height: 1
}

.s-big small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--dim);
  margin-top: 6px
}

.s-goal {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--dim)
}

.s-goal b {
  margin-left: auto;
  color: var(--on);
  font-weight: 600
}

.s-lab {
  font-size: 11px;
  font-weight: 600;
  color: var(--dim);
  margin: 12px 2px 8px
}

.s-chart {
  height: 86px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 12px 12px 22px;
  border-radius: 14px;
  background: var(--bg2);
  position: relative
}

.s-chart i {
  flex: 1;
  border-radius: 3px 3px 1px 1px;
  background: var(--bg4);
  height: 2px;
  transition: height .8s var(--ease);
  position: relative
}

.s-chart i.t {
  background: var(--ac)
}

.s-chart i::after {
  content: attr(data-d);
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8.5px;
  color: var(--faint)
}

.s-tab {
  font-size: 12px
}

.s-tab div {
  display: flex;
  justify-content: space-between;
  padding: 4px 2px;
  color: var(--dim)
}

.s-tab b {
  color: var(--on);
  font-weight: 600
}

.s-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px
}

.s-tiles div {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg2);
  font-size: 11.5px;
  color: var(--dim)
}

.s-tiles b {
  display: block;
  font-size: 18px;
  color: var(--on);
  margin-bottom: 3px
}

/* Format picker */
.s-fmt {
  position: absolute;
  right: 14px;
  bottom: 40px;
  width: 660px;
  padding: 14px 16px 14px;
  border-radius: 16px;
  background: var(--bg1);
  box-shadow: var(--pop);
  z-index: 9;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s, transform .5s var(--ease);
  pointer-events: none
}

.s-fmt.in {
  opacity: 1;
  transform: none
}

.s-fl {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px
}

.s-fl div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 650;
  flex: 1;
  white-space: nowrap
}

.s-fl div i {
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 0 3px transparent;
  position: relative;
  transition: box-shadow .3s;
  background-image: repeating-linear-gradient(#fff 0 4px, #cfcfd3 4px 5px);
  background-size: 66% 60%;
  background-position: 50% 32%;
  background-repeat: no-repeat
}

.s-fl div.on i {
  box-shadow: 0 0 0 3px var(--ac)
}

.s-fl div.on {
  color: var(--ac)
}

.s-fl small {
  font-size: 10px;
  color: var(--faint);
  font-weight: 400;
  margin-top: -3px
}

.s-fmt p {
  margin: 12px 0 10px;
  font-size: 11.5px;
  color: var(--faint);
  line-height: 1.4
}

.s-fmt .ft {
  display: flex;
  align-items: center
}

.s-fmt .ft span {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  background: var(--bg2);
  font-weight: 600;
  font-size: 12px
}

.s-fmt .ft em {
  margin-left: auto;
  font-style: normal;
  color: var(--faint);
  font-size: 12px;
  display: flex;
  gap: 7px;
  align-items: center
}

.s-fmt .ft em u {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--faint);
  border-radius: 3px
}

/* Light table */
.s-lt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s;
  pointer-events: none;
  z-index: 3
}

.ss.table .s-lt {
  opacity: 1
}

.s-tools {
  transition: opacity .3s, scale .3s
}

.ss.table .s-tools {
  opacity: 0
}

.s-tools.mv {
  opacity: 0;
  scale: .9
}

.s-lt-in {
  position: absolute;
  left: 44px;
  right: 30px;
  top: 24px
}

.s-ltr {
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s, transform .7s var(--ease)
}

.ss.table .s-ltr {
  opacity: 1;
  transform: none
}

.s-ltr h6 {
  margin: 0 0 9px;
  font-size: 13px;
  font-weight: 650;
  color: var(--on)
}

.s-ltr h6 small {
  font-weight: 400;
  color: var(--faint);
  font-size: 11px;
  margin-left: 5px
}

.s-ltr div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.mini {
  width: 120px;
  height: 170px;
  background: var(--paper);
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  overflow: hidden
}

.mini::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 16px;
  bottom: 18px;
  background: repeating-linear-gradient(#fffdf8 0 3px, #c8c6c0 3px 4px)
}

.mini.cs::before {
  top: 42px
}

.mini.cs::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 22px;
  width: 52px;
  height: 5px;
  background: #3a3a3e
}

.mini u {
  position: absolute;
  height: 4px;
  border-radius: 1px;
  z-index: 1
}

/* Export */
.s-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity .4s;
  z-index: 10;
  pointer-events: none
}

.ss.export .s-dim {
  opacity: 1
}

.s-dlg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 760px;
  margin: -190px 0 0 -380px;
  padding: 22px 22px 18px;
  border-radius: 20px;
  background: var(--bg1);
  box-shadow: var(--pop);
  z-index: 11;
  opacity: 0;
  transform: scale(.95);
  transition: opacity .4s, transform .5s var(--ease);
  pointer-events: none
}

.ss.export .s-dlg {
  opacity: 1;
  transform: none
}

.s-dlg h4 {
  margin: 0 0 16px;
  font-size: 19px;
  font-weight: 650
}

.s-eo {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px
}

.s-eo div {
  padding: 12px 10px 12px;
  border-radius: 12px;
  background: var(--bg2);
  font-size: 11.5px;
  color: var(--dim);
  transition: background .35s, color .35s
}

.s-eo div b {
  display: block;
  font-size: 13.5px;
  color: var(--on);
  margin: 6px 0 3px;
  font-weight: 650;
  transition: color .35s
}

.s-eo div svg.m {
  width: 20px;
  height: 20px;
  color: var(--on)
}

.s-eo div.on {
  background: var(--ac);
  color: #3a3205
}

.s-eo div.on b,
.s-eo div.on svg.m {
  color: #1B1703
}

.s-eline {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12.5px;
  color: var(--dim);
  margin-bottom: 10px
}

.s-eline span {
  flex: 1;
  height: 32px;
  border-radius: 9px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--on)
}

.s-eline em {
  margin-left: auto;
  width: 36px;
  height: 20px;
  border-radius: 11px;
  background: var(--ac);
  position: relative
}

.s-eline em::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1B1703
}

.s-dlg p {
  margin: 0 0 14px;
  font-size: 11.5px;
  color: var(--faint);
  line-height: 1.45
}

.s-dlg .bt {
  display: flex;
  justify-content: flex-end;
  gap: 10px
}

.s-dlg .bt span {
  height: 32px;
  padding: 0 15px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--dim)
}

.s-dlg .bt span.y {
  background: var(--ac);
  color: #1B1703;
  transition: transform .2s
}

.s-dlg .bt span.y span {
  color: #1B1703;
  padding: 0;
  height: auto
}

.s-dlg .bt span.y.hit {
  transform: scale(.93)
}

.s-dlg .bt svg.m {
  width: 16px;
  height: 16px
}

.kindle {
  position: absolute;
  right: 70px;
  top: 130px;
  width: 360px;
  height: 520px;
  border-radius: 28px;
  background: #1d1d1f;
  padding: 24px 22px 34px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5), inset 0 0 0 1.5px #3a3a3c;
  transform: translateX(140%) rotate(5deg);
  transition: transform 1s var(--ease);
  z-index: 12
}

.ss.kin .kindle {
  transform: rotate(-2deg)
}

.kindle .ei {
  height: 100%;
  border-radius: 4px;
  background: #f2f1ec;
  padding: 22px 22px;
  color: #222;
  font: 400 13.5px/1.55 Literata, serif;
  overflow: hidden;
  position: relative;
  filter: grayscale(1)
}

.kindle .ei .kh {
  font: 400 10px 'Bricolage Grotesque', sans-serif;
  color: #777;
  text-align: center;
  margin-bottom: 26px
}

.kindle .ei h4 {
  margin: 0 0 18px;
  font: 700 22px/1.2 Literata, serif
}

.kindle .ei p {
  margin: 0 0 .7em
}

.kindle .ei .kf {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  font: 400 9.5px 'Bricolage Grotesque', sans-serif;
  color: #777;
  background: #f2f1ec;
  padding: 8px 22px 12px
}

/* Home screen */
.s-start {
  position: absolute;
  inset: 40px 0 0 0;
  background: var(--bg0)
}

.s-start .hi {
  position: absolute;
  left: 144px;
  top: 228px
}

.s-start .hi small {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dim)
}

.s-start .hi small i {
  width: 8px;
  height: 12px;
  border-radius: 2px;
  background: var(--ac)
}

.s-start .hi h2 {
  margin: 18px 0 0;
  font: 650 42px/1 'Bricolage Grotesque', sans-serif;
  color: var(--on);
  text-transform: none;
  letter-spacing: -.01em
}

.s-start .hi p {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--dim)
}

.s-start .bb {
  position: absolute;
  right: 220px;
  top: 290px;
  display: flex;
  gap: 10px
}

.s-start .bb span {
  height: 36px;
  padding: 0 16px 0 12px;
  border-radius: 18px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px
}

.s-start .bb span.y {
  background: var(--ac);
  color: #1B1703
}

.s-start .bb svg.m {
  width: 18px;
  height: 18px
}

.s-start .rc {
  position: absolute;
  left: 144px;
  top: 398px;
  width: 760px;
  height: 282px;
  border-radius: 24px;
  background: var(--bg1);
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 0 20px
}

.s-start .rc .th {
  width: 168px;
  height: 238px;
  background: var(--paper);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4), 0 14px 30px rgba(0, 0, 0, .35);
  padding: 30px 22px;
  flex: none;
  transform: rotate(-1deg)
}

.s-start .rc .th b {
  display: block;
  font: 700 13px Literata, serif;
  color: #222;
  margin-bottom: 18px
}

.s-start .rc .th i {
  display: block;
  height: 2px;
  background: #d5d2cb;
  margin: 7px 0
}

.s-start .rc small {
  font-size: 12px;
  font-weight: 600;
  color: var(--dim)
}

.s-start .rc h3 {
  margin: 8px 0 8px;
  font: 650 30px/1.1 'Bricolage Grotesque', sans-serif;
  color: var(--on);
  text-transform: none
}

.s-start .rc p {
  margin: 0;
  font-size: 14px;
  color: var(--dim)
}

.s-start .rc p.pa {
  font-size: 12px;
  color: var(--faint);
  margin-top: 8px
}

.s-start .rc span.go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  background: var(--ac);
  color: #1B1703;
  font-weight: 600;
  font-size: 13.5px
}

.s-start .ver {
  position: absolute;
  right: 160px;
  bottom: 22px;
  font-size: 11.5px;
  color: var(--faint)
}

/* Drawing */
.kdraw {
  position: absolute;
  left: 18px;
  top: 62px;
  width: 354px;
  height: 629px;
  transform-origin: 50% 0;
  transition: transform .7s var(--ease), opacity .4s;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5)
}

.kdraw svg {
  display: block;
  width: 100%;
  height: 100%
}

.kdsheet {
  height: 290px
}

.kdsheet .ksl {
  grid-template-columns: 84px minmax(0, 1fr) 58px
}

.kbr {
  overflow: hidden;
  margin: 0 -16px 8px;
  padding: 2px 16px
}

.kbr-in {
  display: flex;
  gap: 8px;
  transition: transform .5s var(--ease)
}

.kbr i {
  flex: none;
  width: 82px;
  height: 62px;
  border-radius: 12px;
  background: var(--s2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-style: normal;
  box-shadow: inset 0 0 0 0 var(--ac);
  transition: box-shadow .25s
}

.kbr i svg {
  width: 66px;
  height: 25px;
  background: #f3f1ec;
  border-radius: 6px
}

.kbr i b {
  font-size: 11px;
  font-weight: 600;
  color: var(--t2);
  transition: color .25s
}

.kbr i.on {
  box-shadow: inset 0 0 0 2px var(--ac)
}

.kbr i.on b {
  color: var(--ac)
}

.kbr i.er svg.k {
  width: 20px;
  height: 20px;
  background: none;
  color: var(--t2);
  stroke-width: 1.6
}

.kcol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 9px;
  margin: 6px 0 10px
}

.kcol i {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  position: relative
}

.kcol i::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--ac);
  opacity: 0;
  transition: opacity .25s
}

.kcol i.on::after {
  opacity: 1
}

.kcol i.rb {
  background: conic-gradient(#ff5a36, #ffd23f, #2e9e6a, #3d5afe, #ff8fc7, #ff5a36)
}

/* Toolbar on the right, vertical */
.ss.tr .s-tools {
  left: auto;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  height: auto;
  flex-direction: column;
  padding: 6px 4px;
  border-radius: 22px
}

.ss.tr .s-tools s {
  width: 18px;
  height: 1px;
  margin: 4px 0
}

.ss.tr .s-tools .ty {
  width: 30px;
  height: 30px;
  padding: 0;
  justify-content: center;
  gap: 0;
  font-size: 0
}

.ss.tr .s-tools .ty::before {
  content: attr(data-short);
  font-size: 14px;
  font-weight: 700
}

.ss.tr .s-tools .ty svg {
  display: none
}

.ss.tr .s-note {
  width: 200px
}

.s-pop {
  position: absolute;
  width: 180px;
  padding: 6px;
  border-radius: 12px;
  background: var(--bg1);
  box-shadow: var(--pop);
  z-index: 12;
  font-size: 13px;
  color: var(--on);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s, transform .3s var(--ease);
  pointer-events: none
}

.s-pop.in {
  opacity: 1;
  transform: none
}

.s-pop h6 {
  margin: 0;
  padding: 8px 10px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--faint)
}

.s-pop div {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 31px;
  padding: 0 10px;
  border-radius: 8px;
  transition: background .2s
}

.s-pop div.hv {
  background: var(--bg3)
}

.s-pop div svg.m {
  width: 17px;
  height: 17px;
  color: var(--dim)
}

.s-pop div svg.c {
  width: 16px;
  height: 16px;
  fill: var(--ac);
  margin-left: auto
}

.s-pop .sw {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18)
}

.s-pop s {
  display: block;
  height: 1px;
  margin: 4px 6px;
  background: rgba(255, 255, 255, .08)
}

.s-cur {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s
}

.s-cur svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45))
}

.s-cur::after {
  content: "";
  position: absolute;
  left: -14px;
  top: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(243, 213, 78, .5);
  opacity: 0;
  transform: scale(.3)
}

.s-cur.clk::after {
  animation: sclk .5s ease-out
}

@keyframes sclk {
  0% {
    opacity: .9;
    transform: scale(.3)
  }

  100% {
    opacity: 0;
    transform: scale(1.4)
  }
}

.s-pane h4 svg.m.hit {
  color: var(--ac)
}

/* Stats and cards, enlarged */
.s-big {
  position: absolute;
  left: 48px;
  top: 40px;
  right: 8px;
  bottom: 30px;
  border-radius: 18px;
  background: var(--bg1);
  z-index: 7;
  opacity: 0;
  transform: scale(.985);
  transform-origin: 12% 6%;
  transition: opacity .4s, transform .55s var(--ease);
  pointer-events: none;
  overflow: hidden;
  padding: 12px 24px
}

.ss.zbig .s-zbig,
.ss.kbig .s-kbig {
  opacity: 1;
  transform: none
}

.ss.zbig .s-tools,
.ss.kbig .s-tools {
  opacity: 0
}

.s-bh {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 44px;
  margin-bottom: 12px
}

.s-bh h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  letter-spacing: -.01em
}

.s-bh h4 small {
  font-size: 13px;
  font-weight: 400;
  color: var(--faint)
}

.s-seg {
  display: flex;
  background: var(--bg2);
  border-radius: 10px;
  padding: 3px
}

.s-seg span {
  padding: 6px 20px;
  font-size: 12px;
  border-radius: 8px;
  color: var(--dim)
}

.s-seg span.on {
  background: var(--bg4);
  color: var(--on);
  font-weight: 600
}

.s-bh .s-in {
  margin: 0;
  width: 240px;
  height: 32px
}

.s-bh .r {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12.5px;
  font-weight: 600
}

.s-bh .r span {
  display: flex;
  align-items: center;
  gap: 7px
}

.s-bh .r svg.m {
  width: 18px;
  height: 18px
}

.s-bh .r .s-kadd {
  height: 30px
}

.s-zg {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 12px
}

.s-bc {
  background: var(--bg2);
  border-radius: 16px;
  padding: 16px 18px;
  position: relative;
  font-size: 12px;
  color: var(--dim)
}

.s-bc h5 {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--dim);
  margin: 0 0 12px
}

.s-bc .fig b {
  display: block;
  font-size: 19px;
  font-weight: 700;
  color: var(--on);
  line-height: 1.2
}

.s-bc .fig span {
  font-size: 11.5px;
  color: var(--dim)
}

.s-bc .figs {
  display: grid;
  gap: 10px;
  margin-top: 14px
}

.s-bh2 {
  display: flex;
  align-items: center;
  gap: 22px
}

.s-bh2 .s-ring {
  width: 104px;
  height: 104px
}

.s-bh2 .s-ring b {
  font-size: 19px
}

.s-bh2 .big {
  font-size: 38px;
  font-weight: 700;
  color: var(--on);
  line-height: 1
}

.s-bh2 .big small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--dim);
  margin-top: 8px
}

.s-gl {
  display: flex;
  align-items: center;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--on)
}

.s-gl b {
  margin-left: auto;
  font-weight: 600;
  letter-spacing: .02em
}

.s-bc svg.ch {
  display: block;
  width: 100%;
  overflow: visible
}

.chw {
  position: relative
}

.chw .cl {
  position: absolute;
  font-size: 9.5px;
  line-height: 1;
  color: var(--faint);
  white-space: nowrap
}

.chw .cl.y {
  transform: translate(-100%, -50%)
}

.chw .cl.x {
  transform: translateX(-50%)
}

.chw .cl.r {
  transform: translateY(-50%);
  color: var(--dim)
}

.s-bc svg.ch .gb {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0);
  transition: transform .9s var(--ease)
}

.ss.zbig .s-bc svg.ch .gb {
  transform: none
}

.s-mn {
  font-size: 52px;
  font-weight: 800;
  color: var(--on);
  line-height: 1;
  letter-spacing: -.03em
}

.s-mn+small {
  display: block;
  font-size: 13px;
  color: var(--dim);
  margin: 6px 0 14px
}

.s-bc .rows div {
  display: flex;
  justify-content: space-between;
  padding: 3.5px 0;
  font-size: 11.5px;
  color: var(--dim)
}

.s-bc .rows b {
  color: var(--on);
  font-weight: 600
}

.s-kg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start
}

.s-kc {
  position: relative;
  padding: 14px 16px 12px;
  border-radius: 14px;
  background: var(--bg2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s, transform .55s var(--ease)
}

.ss.kbig .s-kc {
  opacity: 1;
  transform: none
}

.s-kc b {
  display: block;
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 6px
}

.s-kc p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.42;
  color: var(--on)
}

.s-kc small {
  font-size: 10.5px;
  color: var(--dim);
  background: var(--bg3);
  padding: 3px 7px;
  border-radius: 6px
}

.s-kc i {
  position: absolute;
  right: 16px;
  bottom: 13px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--faint)
}

/* Dynamic background */
.kdyn {
  position: absolute;
  left: 50%;
  top: 56px;
  width: 148px;
  height: 264px;
  margin-left: -74px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5)
}

.kdyn img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0
}

.kdyn .sun {
  position: absolute;
  z-index: 4;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: #ffe7a8;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 3px 10px rgba(0, 0, 0, .35);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .4s
}

.kdyn .sun.on {
  opacity: 1
}

.kdyn .sun svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #8a5a00;
  stroke-width: 1.8;
  stroke-linecap: round
}

.kdyn .touch {
  position: absolute;
  z-index: 3;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .45);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .3s, transform .3s
}

.kdyn .touch.on {
  opacity: 1;
  transform: none
}

.kdys {
  height: 352px
}

.kdys .kseg span {
  font-size: 12px
}

.kdys h6 {
  margin: 10px 0 6px;
  font-size: 12.5px;
  color: var(--t2);
  font-weight: 500
}

.ktl6 {
  display: flex;
  gap: 7px
}

.ktl6 i {
  font-style: normal;
  position: relative;
  flex: none;
  width: 56px;
  height: 70px;
  border-radius: 9px;
  background-size: 500% auto;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 0 var(--ac);
  transition: box-shadow .25s
}

.ktl6 i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9px;
  box-shadow: inset 0 0 0 2px var(--ac);
  opacity: 0;
  transition: opacity .25s
}

.ktl6 i.on::after {
  opacity: 1
}

.ktl6 i b {
  position: absolute;
  left: 5px;
  bottom: 4px;
  font-size: 9.5px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7)
}

.ktl6 i.tap,
.kmood span.tap {
  animation: ktap .35s
}

@keyframes ktap {
  40% {
    transform: scale(.93)
  }
}

.kmood {
  margin-top: 12px;
  overflow: hidden
}

.kmood>div {
  display: flex;
  gap: 7px;
  transition: transform .5s var(--ease)
}

.kmood span {
  flex: none;
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 11px 0 7px;
  border-radius: 15px;
  background: var(--s2);
  font-size: 12px;
  color: var(--t2);
  transition: background .3s, color .3s
}

.kmood span.on {
  background: #f1f0ec;
  color: #18171a;
  font-weight: 600
}

.kmood i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  margin-right: -4px;
  box-shadow: 0 0 0 1.5px var(--s2)
}

.kmood span.on i {
  box-shadow: 0 0 0 1.5px #f1f0ec
}

.kmood i:nth-child(3) {
  margin-right: 7px
}

/* Desktop view */
.phone {
  transition: opacity .5s
}

.phone.away {
  opacity: 0
}

.kwin {
  width: 1440px;
  height: 936px;
  border-radius: 14px;
  overflow: hidden;
  background: #0d0d0e;
  box-shadow: 0 0 0 2px #2c2c30, 0 40px 90px rgba(0, 0, 0, .55);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none
}

.kwin.on {
  opacity: 1
}

.kwbar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: #1a1a1c;
  border-bottom: 1px solid #26262a
}

.kwbar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3a3a3e
}

.kwbar span {
  margin: 0 auto;
  transform: translateX(-30px);
  height: 22px;
  padding: 0 60px;
  border-radius: 7px;
  background: #232326;
  color: #9b9a95;
  font: 500 12px/22px 'Instrument Sans', sans-serif
}

.kwbody {
  position: relative;
  height: 900px
}

.kwbody img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .6s
}

.kwbody img.on {
  opacity: 1
}

.kcur {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  z-index: 3
}

.kcur svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5))
}

.kcur::after {
  content: "";
  position: absolute;
  left: -16px;
  top: -16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 181, 71, .55);
  opacity: 0
}

.kcur.clk::after {
  animation: sclk .5s ease-out
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important
  }
}