/* Lomeva.exe Film — floating world + 1:1 Desktop-Chrome */

.film-viewport.lx-host,
.film-viewport:has(.lx-film) {
  position: relative;
  /* Same window aspect as mobile film — larger stage on desktop. */
  width: 100%;
  min-height: min(62vh, 620px);
  max-height: min(78vh, 760px);
  aspect-ratio: 1180 / 760;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(45, 72, 88, 0.28), transparent 62%),
    radial-gradient(ellipse 50% 40% at 18% 78%, rgba(30, 48, 58, 0.35), transparent 55%),
    #070b10 !important;
  border-radius: 14px;
  overflow: hidden;
  perspective: none;
  /* flat: preserve-3d buries the cursor under the transformed world */
  transform-style: flat;
  isolation: isolate;
  contain: paint;
}

@media (min-width: 768px) {
  /* Höhe hängt nur an der Spaltenbreite. Auf- und Zuklappen der Fragen darf die Bühne nicht ziehen. */
  .film-viewport.lx-host.is-flat-film {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1180 / 740 !important;
    min-height: 36rem !important;
    max-height: min(78vh, 760px) !important;
    align-self: start !important;
  }
}

.lx-film {
  --lx-bg: #1a222a;
  --lx-panel: #24303a;
  --lx-side: #141b22;
  --lx-main: #1e2730;
  --lx-line: #33404c;
  --lx-text: #e6edf2;
  --lx-quiet: #9aabbb;
  --lx-muted: #c5d0d8;
  --lx-accent: #4d8da1;
  --lx-accent-hot: #3a6574;
  --lx-ok: #2e6b4f;
  --lx-stop: #3a3030;
  --lx-warn: #e7c4a2;
  --lx-badge: #2a3844;
  --lx-alert: #e15d5d;
  --lx-nav-on: #2a404c;
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
  transform-style: preserve-3d;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  color: var(--lx-text);
  user-select: none;
  touch-action: none;
  pointer-events: none;
}

.lx-space {
  position: absolute;
  inset: -8%;
  pointer-events: none;
  overflow: visible;
}

.lx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  transform: translate3d(var(--parx, 0), var(--pary, 0), 0);
  opacity: 0.55;
}

.lx-orb--a {
  width: 420px;
  height: 420px;
  left: 8%;
  top: 12%;
  background: radial-gradient(circle at 40% 40%, rgba(77, 141, 161, 0.22), transparent 68%);
}

.lx-orb--b {
  width: 520px;
  height: 520px;
  right: 4%;
  bottom: 8%;
  background: radial-gradient(circle at 55% 45%, rgba(107, 163, 181, 0.16), transparent 70%);
}

.lx-grid {
  position: absolute;
  inset: 10% 6%;
  background-image:
    linear-gradient(rgba(77, 141, 161, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 141, 161, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 72%);
  transform: translate3d(var(--parx, 0), var(--pary, 0), 0) perspective(900px) rotateX(58deg);
  transform-origin: 50% 0;
  opacity: 0.7;
}

.lx-glow {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 70%;
  height: 42%;
  transform: translate3d(calc(-50% + var(--parx, 0px)), calc(-50% + var(--pary, 0px)), 0);
  background: radial-gradient(ellipse at center, rgba(77, 141, 161, 0.14), transparent 68%);
  filter: blur(18px);
}

.lx-dust {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 24%, rgba(230, 237, 242, 0.35), transparent),
    radial-gradient(1px 1px at 68% 18%, rgba(230, 237, 242, 0.28), transparent),
    radial-gradient(1.4px 1.4px at 42% 72%, rgba(230, 237, 242, 0.22), transparent),
    radial-gradient(1px 1px at 88% 58%, rgba(230, 237, 242, 0.3), transparent),
    radial-gradient(1.2px 1.2px at 28% 88%, rgba(230, 237, 242, 0.2), transparent);
  transform: translate3d(var(--parx, 0), var(--pary, 0), 0);
  opacity: 0.55;
}

.lx-stage {
  position: absolute;
  inset: 0;
  transform: translate3d(var(--parx, 0), var(--pary, 0), 0);
}

.lx-win {
  position: absolute;
  background: var(--lx-bg);
  border: 1px solid var(--lx-line);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.lx-login,
.lx-app {
  position: absolute;
  inset: 0;
}

.lx-login {
  display: grid;
  place-items: center;
  background: var(--lx-bg);
  z-index: 5;
}

.lx-login__card {
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lx-login__badge {
  position: relative;
  width: 280px;
  height: 200px;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.lx-login__badge-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  z-index: 0;
}

.lx-login__badge canvas {
  position: relative;
  z-index: 1;
  width: 280px;
  height: 200px;
  display: block;
  image-rendering: auto;
  opacity: 0;
}

.lx-login__badge.is-live .lx-login__badge-fallback {
  opacity: 0;
}

.lx-login__badge.is-live canvas {
  opacity: 1;
}

.lx-login__word {
  width: 248px;
  height: auto;
  margin: 4px 0 32px;
  opacity: 0.98;
  image-rendering: auto;
}

.lx-label {
  width: 100%;
  color: var(--lx-quiet);
  font-size: 12px;
  margin-top: 14px;
}

.lx-label:first-of-type {
  margin-top: 0;
}

.lx-input {
  width: 100%;
  margin-top: 4px;
  min-height: 34px;
  padding: 6px 10px;
  background: var(--lx-panel);
  border: 1px solid var(--lx-line);
  color: var(--lx-text);
  font: inherit;
  outline: none;
  box-sizing: border-box;
}

.lx-input.is-focus {
  border-color: var(--lx-accent);
  box-shadow: 0 0 0 1px rgba(77, 141, 161, 0.25);
}

.lx-check {
  width: 100%;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lx-muted);
  font-size: 12px;
  cursor: default;
}

.lx-check i {
  width: 14px;
  height: 14px;
  border: 1px solid var(--lx-line);
  background: var(--lx-panel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.lx-check i.is-on,
.lx-check.is-on i {
  background: var(--lx-accent);
  border-color: var(--lx-accent);
}

.lx-check i.is-on::after,
.lx-check.is-on i::after {
  content: '';
  width: 7px;
  height: 4px;
  border-left: 1.5px solid #f7fbfc;
  border-bottom: 1.5px solid #f7fbfc;
  transform: rotate(-45deg) translate(0, -1px);
}

.lx-check.is-press {
  transform: scale(0.98);
}

.lx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  font: inherit;
  cursor: default;
  transition: background 0.12s ease, transform 0.08s ease;
}

.lx-btn--primary {
  width: 100%;
  margin-top: 18px;
  background: var(--lx-accent);
  color: #f7fbfc;
}

.lx-btn--primary.is-press,
.lx-btn--ok.is-press,
.lx-btn--stop.is-press {
  transform: scale(0.97);
  filter: brightness(0.92);
}

.lx-btn--ok {
  background: var(--lx-ok);
  color: #f7fbfc;
  min-height: 32px;
}

.lx-btn.is-focus-cta {
  outline: 2px solid rgba(77, 141, 161, 0.85);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(77, 141, 161, 0.18);
}

.lx-btn.is-flash-cta {
  filter: brightness(1.18);
  transform: scale(0.97);
}

.lx-btn--stop {
  background: var(--lx-stop);
  color: var(--lx-warn);
  min-height: 32px;
}

.lx-btn--tool {
  background: transparent;
  color: var(--lx-muted);
  border: 1px solid var(--lx-line);
  min-height: 28px;
  padding: 4px 10px;
  font-size: 12px;
}

.lx-btn--tool.is-on {
  color: var(--lx-text);
  border-color: var(--lx-accent);
}

.lx-app {
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  z-index: 4;
}

.lx-app.is-on {
  opacity: 1;
  visibility: visible;
}

.lx-menubar {
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  background: var(--lx-side);
  border-bottom: 1px solid var(--lx-line);
  color: var(--lx-muted);
  font-size: 12px;
}

.lx-menubar b {
  color: var(--lx-text);
  font-weight: 600;
  margin-right: 8px;
}

.lx-menubar__grow {
  flex: 1;
}

.lx-menubar__clock {
  color: var(--lx-quiet);
  font-size: 11px;
}

.lx-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 188px 6px 1fr;
}

.lx-side {
  background: var(--lx-side);
  border-right: 1px solid var(--lx-line);
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 0;
}

.lx-side__scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 12px 0 8px;
  display: flex;
  flex-direction: column;
}

.lx-side__group {
  color: var(--lx-quiet);
  font-size: 11px;
  margin: 0 12px 6px 18px;
}

.lx-side__group.mt {
  margin-top: 14px;
}

.lx-nav {
  margin: 2px 8px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--lx-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lx-nav.is-on {
  background: var(--lx-nav-on);
  color: #f7fbfc;
}

/* Film pointer hover — only while the cursor is over the item. */
.lx-nav.is-hover:not(.is-on) {
  background: rgba(42, 56, 68, 0.62);
  color: #f7fbfc;
}

.lx-nav.is-press {
  filter: brightness(1.08);
}

.lx-side__rule {
  height: 1px;
  margin: 8px 18px;
  background: #33404c;
  flex: 0 0 auto;
}

.lx-nav--konto {
  margin: 4px 8px 10px;
  flex: 0 0 auto;
}

.lx-badge {
  min-width: 22px;
  min-height: 18px;
  padding: 1px 7px;
  border-radius: 8px;
  background: var(--lx-badge);
  color: var(--lx-text);
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

.lx-badge.is-pulse {
  animation: lxBadgePulse 1.15s ease-out 1;
}

@keyframes lxBadgePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(77, 141, 161, 0.55);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(77, 141, 161, 0);
  }
}

.lx-grip {
  background: var(--lx-side);
  position: relative;
  display: grid;
  place-items: center;
}

.lx-grip i {
  width: 2px;
  height: 28px;
  border-radius: 1px;
  background: rgba(142, 160, 176, 0.35);
}

.lx-grip--h {
  height: 8px;
}

.lx-grip--h i {
  width: 28px;
  height: 2px;
}

.lx-main {
  background: var(--lx-main);
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lx-top {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(220px, 480px) minmax(100px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px;
  background: #141b22;
  border-bottom: 1px solid var(--lx-line);
  min-height: 34px;
  position: relative;
  z-index: 6;
}

.lx-top__title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.lx-find {
  position: relative;
  width: 100%;
  max-width: 480px;
  justify-self: center;
}

.lx-find__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 12px 0 10px;
  background: #24303a;
  border: 1px solid #3d4e5c;
  border-radius: 13px;
  color: var(--lx-text);
  font-size: 12px;
  box-sizing: border-box;
}

.lx-find__bar.is-focus {
  border-color: var(--lx-accent);
  box-shadow: 0 0 0 1px rgba(77, 141, 161, 0.28);
}

.lx-find__ico {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--lx-quiet);
}

.lx-find__ph {
  color: var(--lx-quiet);
  pointer-events: none;
}

.lx-find__ph.is-hide {
  display: none;
}

.lx-find__pop {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #24303a;
  border: 1px solid var(--lx-line);
  border-radius: 10px;
  padding: 4px;
  max-height: 220px;
  overflow: hidden;
  z-index: 20;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.lx-find__pop.is-open {
  display: block;
}

.lx-findhit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--lx-text);
  font: inherit;
  text-align: left;
  cursor: default;
}

.lx-findhit.is-on,
.lx-findhit.is-press {
  background: #3a6574;
}

.lx-findhit span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.lx-findhit strong {
  font-size: 12px;
  font-weight: 600;
}

.lx-findhit em {
  font-style: normal;
  font-size: 11px;
  color: #9aabb6;
}

.lx-findhit i {
  font-style: normal;
  font-size: 11px;
  color: var(--lx-muted);
}

.lx-top__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--lx-quiet);
}

.lx-iconbtn {
  width: 26px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--lx-muted);
  position: relative;
}

.lx-iconbtn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.lx-alert-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 7px;
  background: var(--lx-alert);
  color: #f7fbfc;
  font-size: 9px;
  line-height: 14px;
  text-align: center;
}

.lx-page {
  flex: 1;
  min-height: 0;
  margin: 0 16px 12px;
  display: none;
  will-change: opacity;
}

.lx-page.is-on {
  display: block;
}

.lx-sheet {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lx-sheet > .lx-confirm,
.lx-sheet > .lx-slot {
  flex: 1 1 auto;
  min-height: 0;
}

.lx-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.lx-seek {
  display: flex;
  align-items: center;
  height: 22px;
  min-width: 9.5rem;
  padding: 0 10px;
  border: 1px solid #3d4e5c;
  border-radius: 8px;
  background: #1a222a;
  color: #9aabbb;
  font-size: 12px;
}

.lx-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid #33404c;
  color: #c5d0d8;
  font-size: 11px;
}

.lx-chip.is-on {
  background: #2a404c;
  color: #f7fbfc;
}

.lx-overview {
  height: 100%;
  display: grid;
  grid-template-columns: 1.15fr 8px 0.95fr;
  gap: 0;
}

.lx-overview__left {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  /* Fixed row shares — Rezepte must not jump when hub content changes. */
  grid-template-rows: minmax(0, 1.15fr) 8px minmax(0, 0.85fr);
}

.lx-slot {
  background: var(--lx-panel);
  border: 1px solid var(--lx-line);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  outline: 1px solid transparent;
}

/* Hub panes share one fixed stage — calendar / calls / notes never resize Rezepte. */
.lx-hub-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.lx-hub-stage > .lx-slot__body[data-lx-hub-pane] {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 8px;
  box-sizing: border-box;
}

/* Übersicht: der Monat füllt die Fläche. Keine Betriebssystem-Leiste mit Pfeilen. */
.lx-hub-stage > .lx-slot__body[data-lx-hub-pane="cal"] {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lx-overview .lx-slot__body {
  overflow: hidden;
}

/*
 * Senkrechte Leiste wie in Lomeva.exe: nur der türkise Griff, keine Pfeile.
 * Die Übersicht selbst scrollt nicht mit dieser Leiste.
 */
.lx-soft-scroll {
  scrollbar-width: thin;
  scrollbar-color: #43b7c5 transparent;
}

.lx-soft-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.lx-soft-scroll::-webkit-scrollbar-button,
.lx-soft-scroll::-webkit-scrollbar-button:single-button,
.lx-soft-scroll::-webkit-scrollbar-button:vertical:decrement,
.lx-soft-scroll::-webkit-scrollbar-button:vertical:increment,
.lx-soft-scroll::-webkit-scrollbar-button:vertical:start:decrement,
.lx-soft-scroll::-webkit-scrollbar-button:vertical:end:increment,
.lx-soft-scroll::-webkit-scrollbar-button:vertical:start:increment,
.lx-soft-scroll::-webkit-scrollbar-button:vertical:end:decrement {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

.lx-soft-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.lx-soft-scroll::-webkit-scrollbar-thumb {
  background: #43b7c5;
  border-radius: 3px;
}

.lx-soft-scroll::-webkit-scrollbar-thumb:hover,
.lx-soft-scroll::-webkit-scrollbar-thumb:active {
  background: #7ec9d4;
}

.lx-soft-scroll::-webkit-scrollbar-corner {
  background: transparent;
}

.lx-hub-stage > .lx-slot__body.is-hidden {
  display: block;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
  z-index: 0;
}

/* Kalender behält sein Flex-Layout auch während des Ausblendens, sonst rutscht der Monatstitel über die Tage. */
.lx-hub-stage > .lx-slot__body[data-lx-hub-pane="cal"].is-hidden {
  display: flex;
}

.lx-hub-stage > .lx-slot__body:not(.is-hidden) {
  visibility: visible;
  z-index: 1;
}

.lx-list--fill,
.lx-slot__body > .lx-list,
.lx-confirm__grid {
  min-height: 100%;
}

.lx-list--fill,
.lx-confirm__grid {
  display: flex;
  flex-direction: column;
}

.lx-rowpad {
  flex: 1 1 auto;
  display: grid;
  min-height: 30px;
  grid-template-columns: 1.35fr 1.25fr 0.85fr;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 29px,
    #33404c 29px,
    #33404c 30px
  );
}

.lx-rowpad > i {
  border-right: 1px solid #33404c;
  min-height: 100%;
}

.lx-rowpad > i:last-child {
  border-right: 0;
}

.lx-list--calls .lx-row,
.lx-list--calls .lx-rowpad {
  grid-template-columns: 1.25fr 1fr 1.35fr 0.7fr;
}

.lx-list--confirm .lx-rowpad {
  grid-template-columns: 1.3fr 1fr 1.15fr 0.7fr;
}

.lx-list--rx .lx-rowpad {
  grid-template-columns: 1.3fr 1.4fr 0.8fr;
}

[data-lx-hub-pane="notes"] .lx-rowpad,
.lx-notes__side .lx-rowpad {
  grid-template-columns: 1.15fr 1.4fr;
}

.lx-list--wide .lx-rowpad {
  grid-template-columns: 1.2fr 1.5fr 1fr 0.8fr;
}

.lx-confirm__grid > .lx-rowpad {
  grid-template-columns: 1.2fr 1.5fr 1.3fr 1fr 0.7fr;
}

.lx-rx .lx-rowpad {
  grid-template-columns: 1.3fr 1.2fr 1.1fr 0.8fr;
}

.lx-panehead {
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 6px 0 10px;
  background: #1a222a;
  border-bottom: 1px solid var(--lx-line);
}

.lx-jump {
  width: 22px;
  height: 22px;
  margin-left: auto;
  display: grid;
  place-items: center;
  color: #9aabb6;
  flex: 0 0 auto;
}

.lx-jump svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.lx-practice {
  color: var(--lx-quiet);
  font-size: 12px;
  white-space: nowrap;
}

.lx-hubbar {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--lx-line);
  background: #151c22;
}

.lx-hubbar .lx-jump {
  align-self: center;
  margin-right: 4px;
}

.lx-hubtab {
  padding: 8px 12px;
  color: var(--lx-quiet);
  font-size: 12px;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: default;
}

.lx-hubtab.is-on {
  color: var(--lx-text);
  box-shadow: inset 0 -2px 0 var(--lx-accent);
}

.lx-hubtab.is-hover:not(.is-on) {
  color: var(--lx-text);
  background: rgba(42, 56, 68, 0.45);
}

.lx-slot__body.is-hidden {
  display: none;
}

.lx-railrow.is-pending.is-flash {
  outline: 1px solid rgba(85, 184, 135, 0.45);
  border-radius: 6px;
}

.lx-notes {
  height: 100%;
  display: grid;
  grid-template-columns: 240px 6px minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--lx-line);
  background: var(--lx-panel);
}

.lx-notes__side {
  padding: 10px 8px;
  min-width: 0;
  overflow: hidden;
}

.lx-notes__split {
  background: #141b22;
}

.lx-notes__body {
  padding: 14px 16px;
  min-width: 0;
}

.lx-notes__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #c5d0d8;
  font-size: 12px;
}

.lx-notes__tools b,
.lx-notes__tools i,
.lx-notes__tools u {
  min-width: 16px;
  text-align: center;
}

.lx-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.lx-swatch.is-on {
  box-shadow: 0 0 0 1px #f7fbfc;
}

.lx-notes__text {
  margin-top: 4px;
  min-height: 120px;
  padding: 10px;
  background: var(--lx-main);
  border: 1px solid var(--lx-line);
  color: var(--lx-text);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.lx-slot__body {
  flex: 1;
  min-height: 0;
  padding: 8px;
  overflow: hidden;
}

.lx-slot__body.lx-soft-scroll {
  overflow: auto;
}

.lx-overview .lx-slot__body.lx-soft-scroll {
  overflow: hidden;
}

.lx-cal-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 8px 10px 10px;
  box-sizing: border-box;
  background: var(--lx-main);
}

.lx-cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.lx-cal-toolbar__left,
.lx-cal-toolbar__right {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lx-cal-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6px auto;
  gap: 0;
  align-items: stretch;
}

.lx-cal-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--lx-line);
  background: var(--lx-panel);
  border-radius: 8px;
  overflow: hidden;
}

.lx-cal-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  padding: 8px 8px 4px;
  --lx-cal-month-w: 100%;
}

.lx-cal-strip {
  display: flex;
  height: 100%;
  gap: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* Übersicht: exactly one month filling the hub pane. */
.lx-cal-strip--single {
  width: 100%;
}

.lx-cal-strip--single {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.lx-cal-strip--single .lx-cal-month {
  width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  padding-right: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.lx-hub-stage .lx-cal-month__title {
  grid-row: 1;
  align-self: start;
  background: #24303a;
}

.lx-hub-stage .lx-cal-grid {
  grid-row: 2;
  min-height: 0;
  overflow: hidden;
}

/* Page: months are slides — one month = one viewport width. */
.lx-cal-strip--page {
  width: max-content;
}

.lx-cal-strip--page .lx-cal-month {
  box-sizing: border-box;
  flex: 0 0 var(--lx-cal-month-w, 100%);
  width: var(--lx-cal-month-w, 100%);
  min-width: var(--lx-cal-month-w, 100%);
  max-width: var(--lx-cal-month-w, 100%);
  padding-right: 0;
  height: 100%;
}

.lx-cal-month {
  box-sizing: border-box;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lx-cal-month__title {
  margin: 0 0 6px 4px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  background: #24303a;
}

.lx-cal-grid {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.lx-cal-hbar {
  flex-shrink: 0;
  height: 14px;
  padding: 0 10px 2px;
  box-sizing: border-box;
}

.lx-cal-hbar__track {
  position: relative;
  height: 100%;
  background: transparent;
}

.lx-cal-hbar__thumb {
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 38%;
  height: 5px;
  border-radius: 3px;
  background: #9aabbb;
  display: block;
}

.lx-cal-hbar__thumb.is-drag {
  height: 8px;
  background: #c5d0d8;
}

.lx-cal-split {
  width: 6px;
  margin: 0 1px;
  background: #141b22;
  cursor: col-resize;
  position: relative;
}

.lx-cal-split::after {
  content: '';
  position: absolute;
  inset: 12% 2px;
  background: #33404c;
  border-radius: 1px;
}

.lx-cal-split.is-drag::after {
  background: #6ba3b5;
}

.lx-cal-rail {
  width: 220px;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--lx-line);
  background: var(--lx-panel);
  border-radius: 8px;
  overflow: hidden;
}

.lx-cal-rail__mini {
  padding: 6px 6px 8px;
  border-bottom: 1px solid var(--lx-line);
  flex-shrink: 0;
}

.lx-cal-rail__nav {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 0;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.lx-cal-rail__nav .lx-btn {
  min-height: 28px;
  padding: 0;
}

.lx-dayhead--mini {
  font-size: 10px;
  margin-bottom: 2px;
}

.lx-mini-weeks {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.lx-mini-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.lx-mini-day {
  min-height: 22px;
  border: 0;
  background: transparent;
  color: var(--lx-text);
  font: inherit;
  font-size: 11px;
  padding: 0;
}

.lx-mini-day.is-out {
  opacity: 0.35;
}

.lx-mini-day.is-on {
  background: #2a404c;
  border-radius: 6px;
}

.lx-cal-rail__list {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lx-railrow {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 4px 6px;
  cursor: default;
}

.lx-railrow i {
  width: 3px;
  min-height: 38px;
  border-radius: 2px;
  background: #43b7c5;
  flex-shrink: 0;
  display: block;
}

.lx-railrow i.mteal { background: #43b7c5; }
.lx-railrow i.mgreen { background: #55b887; }
.lx-railrow i.mblue { background: #5d91d6; }
.lx-railrow i.mred { background: #d96868; }
.lx-railrow i.morange { background: #e9a34b; }

.lx-railrow span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lx-railrow strong {
  font-size: 12px;
  font-weight: 600;
}

.lx-railrow em {
  font-style: normal;
  font-size: 11px;
  color: var(--lx-quiet);
}

.lx-dayhead {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin: 0;
  padding: 6px 0;
  color: var(--lx-quiet);
  font-size: 11px;
  text-align: center;
  background: #1a222a;
  border-bottom: 1px solid #3d4e5c;
  flex-shrink: 0;
}

.lx-weeks {
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 0;
  min-height: 0;
  overflow: hidden;
  align-content: stretch;
  border-left: 1px solid #3d4e5c;
  border-top: 1px solid #3d4e5c;
}

/* Voller Kalender darf die Tage etwas höher zeigen, ohne über den Titel zu laufen. */
.lx-cal-strip--page .lx-weeks {
  grid-template-rows: repeat(5, minmax(0, 1fr));
}

.lx-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  min-height: 0;
}

.lx-day {
  /* Avalonia Border.day: shared edges, compact padding */
  border: 0;
  border-right: 1px solid #3d4e5c;
  border-bottom: 1px solid #3d4e5c;
  border-radius: 0;
  background: #24303a;
  padding: 3px 4px 2px 5px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.lx-day.is-today {
  background: #2c404a;
  border-left: 3px solid #6ba3b5;
  padding-left: 2px;
}

.lx-day.is-out {
  background: #1a222a;
  opacity: 1;
}

.lx-day.is-out .lx-day__n {
  color: #8a9aaa;
}

.lx-day.is-busy {
  background: #273640;
}

.lx-day.is-out.is-busy {
  background: #1e282f;
}

.lx-day__n {
  all: unset;
  display: block;
  font-size: 11px;
  margin: 0 0 1px 0;
  color: inherit;
  cursor: default;
  line-height: 1.2;
  flex-shrink: 0;
}

.lx-appt {
  display: block;
  width: 100%;
  margin-top: 1px;
  padding: 1px 3px;
  border: 0;
  border-left: 3px solid #43b7c5;
  background: #2a3844;
  color: var(--lx-text);
  font: inherit;
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
  box-sizing: border-box;
  flex-shrink: 0;
}

.lx-appt.mteal {
  border-left-color: #43b7c5;
}
.lx-appt.mgreen {
  border-left-color: #55b887;
}
.lx-appt.morange {
  border-left-color: #e9a34b;
}
.lx-appt.mred {
  border-left-color: #d96868;
}
.lx-appt.mblue {
  border-left-color: #5d91d6;
}

.lx-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Avalonia-like DataGrid shell */
.lx-list--grid {
  border: 1px solid var(--lx-line);
  background: var(--lx-main);
  overflow: hidden;
  min-height: 0;
}

.lx-list--grid .lx-row {
  grid-template-columns: 1.35fr 1.25fr 0.85fr;
  gap: 0;
  min-height: 30px;
  padding: 0 10px;
  border-bottom: 1px solid var(--lx-line);
  font-size: 12px;
  line-height: 1.25;
}

.lx-list--grid .lx-row > * {
  padding: 6px 8px 6px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.lx-list--grid .lx-row > *:last-child {
  border-right: 0;
  padding-right: 0;
}

.lx-list--confirm .lx-row {
  grid-template-columns: 1.3fr 1fr 1.15fr 0.7fr;
}

.lx-list--rx .lx-row,
.lx-list--rx .lx-rowpad {
  grid-template-columns: 1.3fr 1.4fr 0.8fr;
}

[data-lx-hub-pane="notes"] .lx-list--grid .lx-row {
  grid-template-columns: 1.15fr 1.4fr;
}

[data-lx-hub-pane="calls"] .lx-list--grid .lx-row {
  grid-template-columns: 1.35fr 1.25fr 0.85fr;
}

.lx-notes__side .lx-list--grid .lx-row {
  grid-template-columns: 1.15fr 1.35fr;
}

.lx-list--wide .lx-row {
  grid-template-columns: 1.2fr 1.5fr 1fr 0.8fr;
}

.lx-list--wide.lx-list--grid .lx-row,
.lx-list.lx-list--wide .lx-row {
  grid-template-columns: 1.2fr 1.5fr 1fr 0.8fr;
}

.lx-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1.1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-bottom: 1px solid var(--lx-line);
  font-size: 12px;
}

.lx-row--head {
  background: #1a222a;
  color: var(--lx-quiet);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.lx-list--grid .lx-row--head {
  min-height: 28px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.lx-list--grid .lx-row:not(.lx-row--head):nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.lx-row.is-on {
  background: #3a6574 !important;
}

.lx-row em {
  color: var(--lx-quiet);
  font-style: normal;
  font-size: 11px;
}

.lx-confirm {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 6px minmax(220px, 0.42fr);
  gap: 0;
  border: 1px solid var(--lx-line);
  background: var(--lx-panel);
}

.lx-confirm__grid {
  min-width: 0;
  overflow: hidden;
}

.lx-confirm__grid.lx-soft-scroll {
  overflow: auto;
}

.lx-confirm__head {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.3fr 1fr 0.7fr;
  gap: 0;
  background: #1a222a;
  border-bottom: 1px solid var(--lx-line);
  color: var(--lx-quiet);
  font-size: 12px;
  font-weight: 600;
}

.lx-rx .lx-confirm__head,
.lx-rx .lx-confirm__row {
  grid-template-columns: 1.3fr 1.2fr 1.1fr 0.8fr;
}

.lx-confirm__head span,
.lx-confirm__row > span {
  padding: 8px 10px;
  border-right: 1px solid var(--lx-line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lx-confirm__row {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.3fr 1fr 0.7fr;
  border-bottom: 1px solid var(--lx-line);
  min-height: 28px;
  align-items: center;
}

.lx-confirm__row.is-on {
  background: #3a6574;
}

.lx-confirm__detail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--lx-panel);
}

.lx-confirm__slot {
  flex: 0 0 auto;
  padding: 8px 12px;
  background: #1a222a;
  border-bottom: 1px solid var(--lx-line);
  text-align: right;
  font-weight: 600;
}

.lx-confirm__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
}

.lx-confirm__body h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.lx-confirm__body .quiet {
  color: var(--lx-quiet);
}

.lx-confirm__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lx-confirm__actions {
  margin-top: auto;
  padding: 10px 12px;
  background: #1a222a;
  border-top: 1px solid var(--lx-line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lx-confirm__actions .row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lx-confirm__actions .lx-btn--ok {
  flex: 1 1 auto;
  width: 100%;
  border-radius: 0;
  background: #2e6b4f;
}

.lx-confirm__body .lx-label {
  margin-top: 4px;
  font-size: 11px;
}

.lx-confirm__phone {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lx-talk__title {
  margin-top: 4px;
}

.lx-talk {
  background: #1a222a;
  border-left: 3px solid #43b7c5;
  padding: 8px 10px;
  color: var(--lx-text);
  font-size: 12px;
}

.lx-input--note {
  min-height: 36px;
  color: var(--lx-quiet);
}

.lx-propose__rule {
  height: 1px;
  margin: 8px 0 6px;
  background: #6ba3b5;
}

.lx-propose__title {
  margin-bottom: 4px;
}

.lx-input.is-focus-cta {
  outline: 1px solid #8ec9d4;
  outline-offset: 1px;
}

.lx-ret {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
}

.lx-ret[hidden] {
  display: none;
}

.lx-ret svg {
  width: 15px;
  height: 15px;
}

.lx-filter__count {
  color: var(--lx-quiet);
  font-size: 11px;
  white-space: nowrap;
}

.lx-filter .lx-seek {
  margin-left: auto;
}

.lx-confirm.lx-rx {
  grid-template-columns: minmax(0, 1fr);
}

.lx-rxsheet {
  flex: 0 0 auto;
  margin-top: 8px;
  padding: 10px 12px;
  background: #1a222a;
  border: 1px solid var(--lx-line);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lx-rxsheet__title {
  font-weight: 600;
}

.lx-rxsheet__grid {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 3px 8px;
  font-size: 12px;
}

.lx-rxsheet__chips {
  display: flex;
  gap: 4px;
}

.lx-rxsheet .lx-btn--ok {
  align-self: flex-start;
  min-width: 11rem;
}

.lx-rxsheet .quiet {
  color: var(--lx-quiet);
  font-size: 11px;
}

.lx-status {
  flex: 0 0 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 8px;
  background: #141b22;
  border-top: 1px solid var(--lx-line);
  color: var(--lx-quiet);
  font-size: 11px;
  min-height: 24px;
}

.lx-status__left {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.lx-status__mark {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  flex: 0 0 auto;
  background: #9aabbb;
  -webkit-mask: url('./assets/desk/lomeva-icon.png') center / contain no-repeat;
  mask: url('./assets/desk/lomeva-icon.png') center / contain no-repeat;
}

.lx-status__dot {
  margin: 0 7px;
  opacity: 0.85;
}

.lx-status__notice {
  margin-left: 0;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.lx-status__notice.is-on {
  opacity: 1;
}

.lx-status__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--lx-quiet);
}

/* Flat overlay above the film world (host uses transform-style: flat). */
.lx-mouse-layer {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: visible;
}

/* Mouse on viewport — compact PC pointer (~8×10 CSS px). */
.lx-mouse {
  position: absolute;
  z-index: 1;
  width: 8px;
  height: 10px;
  margin: 0;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.48));
  will-change: left, top, opacity;
}

.lx-mouse.is-away {
  opacity: 0 !important;
  visibility: hidden;
}

.lx-mouse__ptr {
  display: block;
  width: 8px;
  height: 10px;
  /* Tip of the arrow — click scale pivots here */
  transform-origin: 0.6px 0.55px;
  will-change: transform;
}

.lx-mouse svg {
  width: 8px;
  height: 10px;
  display: block;
}

.lx-mouse.is-drag {
  filter: drop-shadow(0 1px 2px rgba(77, 141, 161, 0.55));
}

.lx-mouse__ring {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(77, 141, 161, 0.85);
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}

.lx-mouse.is-click .lx-mouse__ring {
  animation: lxClickRing 0.32s ease-out 1;
}

@keyframes lxClickRing {
  0% {
    opacity: 0.9;
    transform: scale(0.45);
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

.lx-caret {
  display: inline-block;
  width: 1px;
  height: 1em;
  background: var(--lx-accent);
  vertical-align: text-bottom;
  margin-left: 1px;
  opacity: 0;
}

.lx-caret.is-on {
  opacity: 1;
  animation: lxBlink 0.9s step-end infinite;
}

@keyframes lxBlink {
  50% {
    opacity: 0;
  }
}

.lx-type {
  min-height: 1.2em;
  white-space: pre;
}

@media (pointer: coarse), (hover: none), (max-width: 767px) {
  /* Phone stage hugs the desk-window aspect — no empty letterbox. */
  .film-viewport.lx-host,
  .film-viewport:has(.lx-film),
  .film-viewport.is-mobile-film {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(46dvh, 360px) !important;
    aspect-ratio: 1180 / 760 !important;
    perspective: none !important;
    border-radius: 12px;
    contain: paint;
  }
}

@media (max-width: 767px) {
  .film-viewport.lx-host,
  .film-viewport:has(.lx-film),
  .film-viewport.is-mobile-film {
    perspective: none !important;
  }

  /* Keep authored world size — camera scales it into the phone frame. */
  .lx-film {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 1600px !important;
    height: 1000px !important;
  }

  .lx-space {
    opacity: 0.35;
  }

  .lx-space .lx-grid {
    display: none;
  }

  .lx-win {
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  }

  /* Same desktop chrome / type — camera scales the whole window. */
  .lx-top__right > span:first-child {
    display: none;
  }

  .lx-mouse-layer {
    z-index: 80;
  }

  /* Same compact desktop pointer on mobile film. */
  .lx-mouse,
  .lx-mouse__ptr {
    width: 8px;
    height: 10px;
  }

  .lx-mouse svg {
    width: 8px;
    height: 10px;
  }

  .film-end {
    font-size: 1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lx-badge.is-pulse,
  .lx-mouse.is-click .lx-mouse__ring,
  .lx-caret.is-on {
    animation: none !important;
  }
}
