


.window.floating {
  position: absolute !important;
  z-index: 200;
  flex: none !important;
}


.window.wm-hidden {
  display: none !important;
}


.window-titlebar {
  user-select: none;
}


#wm-snap-preview {
  position: absolute;
  z-index: 9999;
  pointer-events: none;
  border-radius: 8px;
  background: rgba(137, 180, 250, 0.12);
  border: 2px solid rgba(137, 180, 250, 0.55);
  box-shadow: inset 0 0 0 1px rgba(137, 180, 250, 0.15);
  display: none;
  transition: left 80ms ease, top 80ms ease, width 80ms ease, height 80ms ease;
}


#wlc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(17, 17, 27, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
#wlc-overlay.wlc-show { opacity: 1; }

#wlc-inner {
  width: 540px;
  max-width: 94vw;
  max-height: 88vh;
  background: var(--mantle);
  border: 1px solid var(--surface1);
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#wlc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--crust);
  border-bottom: 1px solid var(--surface0);
  flex-shrink: 0;
}
#wlc-header-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--subtext0);
  flex: 1;
  text-align: left;
}
#wlc-close {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  cursor: pointer;
  padding: 0;
  transition: transform 0.1s, filter 0.1s;
}
#wlc-close:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}

#wlc-pages { flex: 1; overflow: hidden; position: relative; min-height: 0; }

.wlc-page {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 28px 28px 16px;
  gap: 14px;
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
}
.wlc-page.wlc-active { display: flex; }

.wlc-page-icon { font-size: 36px; color: var(--mauve); }
.wlc-page-title {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  text-align: center;
  margin: 0;
}
.wlc-page-body {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--subtext1);
  line-height: 1.7;
  width: 100%;
}
.wlc-page-body p { margin: 0 0 10px; }
.wlc-page-body strong { color: var(--text); }
.wlc-page-body code {
  background: var(--surface0);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--green);
  font-size: 12px;
}


.wlc-keytable { display: flex; flex-direction: column; gap: 6px; }
.wlc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface0);
  border-radius: 6px;
  padding: 7px 10px;
}
.wlc-row kbd {
  background: var(--surface1);
  border: 1px solid var(--surface2);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
}
.wlc-row span { color: var(--subtext1); font-size: 12px; }


.wlc-snapgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 6px;
}
.wlc-snapcell {
  background: var(--surface0);
  border-radius: 5px;
  padding: 10px 4px;
  text-align: center;
  font-size: 11px;
  color: var(--overlay1);
}
.wlc-snapcell.corner { color: var(--blue); }
.wlc-snapcell.top, .wlc-snapcell.bot { color: var(--mauve); }
.wlc-snapcell.side { color: var(--green); }
.wlc-snapcell.mid { background: transparent; }


#wlc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--surface0);
  flex-shrink: 0;
}
#wlc-dots { display: flex; gap: 7px; }
.wlc-dot-btn {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surface2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
}
.wlc-dot-btn.wlc-dot-active { background: var(--mauve); transform: scale(1.25); }
#wlc-prev, #wlc-next {
  background: var(--surface0);
  border: 1px solid var(--surface1);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.1s;
}
#wlc-prev:hover, #wlc-next:hover { background: var(--surface1); }
#wlc-next { background: var(--mauve); border-color: var(--mauve); color: var(--base); }
#wlc-next:hover { filter: brightness(1.1); }

@media (max-width: 780px) {
  #wlc-inner { max-height: 96vh; }
  .wlc-page { padding: 20px 16px 12px; }
  .wlc-page-icon { font-size: 28px; }
  .wlc-page-title { font-size: 13px; }
}
