@font-face {
  font-family: 'Jiin Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/jiin-caveat-latin-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jiin Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/jiin-caveat-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Name-only paper signature, shared by the sidebar and account menu. */
#home-screen .jiin-signature-label {
  /* Follow the active theme for both ink and paper, including live switches. */
  --jiin-signature-ink: var(--jiin-text, var(--c-title, #f0ece4));
  --jiin-signature-paper: color-mix(in srgb, var(--c-bg, #212121) 86%, var(--jiin-signature-ink));
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  min-height: 56px;
  padding: 9px 18px 11px;
  box-sizing: border-box;
}
#home-screen .jiin-signature-label::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(2deg, transparent 0 2px, color-mix(in srgb, var(--jiin-signature-ink) 3%, transparent) 2px 3px, transparent 3px 7px),
    var(--jiin-signature-paper);
  transform: rotate(-1.4deg);
  clip-path: polygon(2% 6%,11% 3%,25% 5%,43% 2%,58% 4%,76% 2%,95% 5%,98% 15%,97% 38%,99% 55%,97% 78%,98% 93%,81% 96%,69% 94%,48% 97%,29% 95%,11% 98%,2% 94%,3% 72%,1% 46%,3% 28%);
  pointer-events: none;
}
/* ID specificity keeps theme heading fonts from replacing the approved script. */
html #home-screen .jiin-signature-label > :is(#dt-sb-name, #jiin-account-name) {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--jiin-signature-ink) !important;
  font-family: "Jiin Caveat", "Segoe Print", cursive !important;
  font-size: 32px !important;
  font-weight: 500 !important;
  font-style: normal !important;
  line-height: 1.15;
  letter-spacing: normal;
  text-shadow: none !important;
  transform: rotate(-1.4deg);
}
html #home-screen #dt-sidebar .dt-sb-profil.jiin-signature-profile {
  gap: 10px;
  padding: 8px 2px;
  overflow: visible;
}
#home-screen #dt-sidebar .jiin-signature-profile .dt-sb-profil-btn {
  width: 36px;
  height: 40px;
  flex: 0 0 36px;
}
#home-screen .jiin-profile-heading .jiin-signature-label {
  margin: 2px 0 4px;
}
html #home-screen .jiin-signature-label > #jiin-account-name {
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (pointer: coarse) {
  #home-screen #dt-sidebar .jiin-signature-profile .dt-sb-profil-btn {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
}
