/* Jamelix Leaf Experience v1.0.0 — approved 01 Jemné. All rules are scoped to this widget. */
#jamelix-leaf-experience {
  --leaf-card-opacity: .50;
  --leaf-card-blur: 14px;
  --leaf-card-bg-rgb: 19, 29, 24;
  --leaf-card-radius: 15px;
  --leaf-card-shadow: 0 7px 24px #0003;
  --leaf-card-text-color: #f4f2e9;
  --leaf-card-border-color: #dce4ca45;
  --leaf-card-fallback-opacity: .97;
  --leaf-card-font: Georgia, 'Times New Roman', serif;
  --leaf-card-font-size: 23px;
  --leaf-card-mobile-font-size: 22px;
  --leaf-card-ui-font: 'Open Sans', Arial, sans-serif;
  --leaf-thread-color: #c5cdb291;
  position: fixed; inset: 0; z-index: 1000000; pointer-events: none;
  color: var(--leaf-card-text-color); font-family: var(--leaf-card-ui-font);
}
#jamelix-leaf-experience *, #jamelix-leaf-target { box-sizing: border-box; }
#leaf.jamelix-leaf-enhanced { pointer-events: none; transition: opacity .35s ease; }
#leaf-layer > #jamelix-leaf-target {
  all: unset; box-sizing: border-box; display: block; position: absolute; left: 0; top: 0;
  width: 75px; height: 100px; margin: 0; padding: 0; border: 0;
  background: transparent; box-shadow: none; pointer-events: auto;
  transform-style: preserve-3d; transform-origin: 50% 50%;
  touch-action: manipulation; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
#leaf-layer > #jamelix-leaf-target:focus-visible,
#jamelix-leaf-experience button:focus-visible { outline: 2px solid #e6c68a; outline-offset: 4px; }
#jamelix-leaf-thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
#jamelix-leaf-thread path { stroke: var(--leaf-thread-color); stroke-width: 1; fill: none; }
#jamelix-leaf-thread circle { fill: var(--leaf-thread-color); }
#jamelix-leaf-thread.leaf-thread-shown { opacity: 1; }
#jamelix-leaf-card {
  position: absolute; width: 348px; max-width: calc(100vw - 24px);
  padding: 15px 22px 14px; margin: 0;
  background: rgba(var(--leaf-card-bg-rgb), var(--leaf-card-opacity));
  backdrop-filter: blur(var(--leaf-card-blur)); -webkit-backdrop-filter: blur(var(--leaf-card-blur));
  border: 1px solid var(--leaf-card-border-color); border-radius: var(--leaf-card-radius);
  box-shadow: var(--leaf-card-shadow); color: var(--leaf-card-text-color);
  font-family: var(--leaf-card-ui-font); font-weight: 400; line-height: normal;
  opacity: 0; transition: opacity .4s ease; pointer-events: auto;
  overflow: auto; overscroll-behavior: contain; text-align: left;
}
#jamelix-leaf-card[hidden] { display: none !important; }
#jamelix-leaf-card.leaf-card-shown { opacity: 1; }
#jamelix-leaf-card .leaf-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
#jamelix-leaf-card .leaf-card-heading > span { font-size: 10px; letter-spacing: .17em; color: var(--leaf-card-text-color); }
#jamelix-leaf-card button { font-family: var(--leaf-card-ui-font); font-weight: 400; line-height: normal; letter-spacing: normal; text-transform: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; box-shadow: none; }
#jamelix-leaf-card .leaf-card-close { flex-shrink: 0; width: 44px; height: 44px; padding: 0; margin: -8px -12px -8px 0; background: none; border: 0; color: var(--leaf-card-text-color); font-size: 25px; font-weight: 300; border-radius: 50%; }
#jamelix-leaf-card .leaf-card-close:hover { background: #fff1; }
#jamelix-leaf-thought { margin: 13px 0 17px; padding: 0; border: 0; background: none; color: var(--leaf-card-text-color); font-family: var(--leaf-card-font); font-size: var(--leaf-card-font-size); font-weight: 400; line-height: 1.4; letter-spacing: .005em; text-wrap: pretty; text-shadow: none; }
#jamelix-leaf-card .leaf-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; color: var(--leaf-card-text-color); }
#jamelix-leaf-hold { min-height: 44px; padding: 4px 9px; margin: 0 -9px 0 0; background: none; border: 0; border-radius: 8px; font-size: 12px; color: var(--leaf-card-text-color); text-decoration: underline; text-decoration-color: #f4f2e970; text-underline-offset: 4px; white-space: nowrap; }
#jamelix-leaf-card .leaf-reading-progress { height: 1px; background: #d5d7b329; margin-top: 7px; overflow: hidden; }
#jamelix-leaf-card .leaf-reading-progress span { display: block; width: 100%; height: 100%; background: #d4d4ae8f; transform-origin: left; }
#jamelix-leaf-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #jamelix-leaf-card { background: rgba(var(--leaf-card-bg-rgb), var(--leaf-card-fallback-opacity)); }
}
@media (max-width: 700px) {
  #jamelix-leaf-card { padding: 14px 20px 12px; }
  #jamelix-leaf-thought { font-size: var(--leaf-card-mobile-font-size); }
}
@media (prefers-reduced-motion: reduce) {
  #leaf.jamelix-leaf-enhanced, #jamelix-leaf-card, #jamelix-leaf-thread { transition: none; }
}
