:root {
  --limn-bg-0: #05060c;
  --limn-bg-1: #0a0c14;
  --limn-bg-2: #0f121c;
  --limn-bg-3: #141824;
  --limn-bg-4: #1c2130;
  --limn-border: #1a1f2e;
  --limn-border-2: #262c3d;
  --limn-border-3: #363d52;
  --limn-text-0: #eef1f6;
  --limn-text-1: #98a1b8;
  --limn-text-2: #6b7385;
  --limn-text-3: #464d61;
  --limn-accent: #6ea8fe;
  --limn-accent-2: #a371f7;
  --limn-accent-3: #ec4899;
  --limn-success: #4ade80;
  --limn-warning: #fbbf24;
  --limn-danger: #f87171;
  --limn-radius: 10px;
  --limn-radius-lg: 14px;
  --limn-blur: 20px;
  --limn-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --limn-accent-soft: rgba(110, 168, 254, 0.12);
  --limn-accent-glow: rgba(110, 168, 254, 0.35);
  --limn-glass: rgba(13, 15, 22, 0.72);
  --limn-glass-2: rgba(18, 20, 32, 0.85);
}

.limn-toolbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  display: flex;
  align-items: stretch;
  background: var(--limn-glass);
  backdrop-filter: blur(var(--limn-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--limn-blur)) saturate(180%);
  border-top: 1px solid var(--limn-border);
  z-index: 100;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.limn-toolbar::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--limn-accent-glow), transparent);
  opacity: 0.5;
  pointer-events: none;
}

.limn-toolbar.hidden {
  display: none;
}

.limn-toolbar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--limn-text-1);
  font-size: 20px;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  margin: 6px 3px;
  border-radius: var(--limn-radius);
  transition: background 0.15s var(--limn-ease),
              color 0.15s var(--limn-ease),
              transform 0.1s var(--limn-ease);
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.limn-toolbar-btn:hover {
  background: var(--limn-bg-2);
  color: var(--limn-text-0);
}

.limn-toolbar-btn:active {
  background: var(--limn-bg-3);
  color: var(--limn-accent);
  transform: scale(0.94);
}

.limn-toolbar-btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.limn-toolbar-btn:disabled:hover {
  background: transparent;
  color: var(--limn-text-1);
}

.limn-fab {
  position: fixed;
  right: 20px;
  bottom: calc(72px + env(safe-area-inset-bottom, 0));
  width: 54px;
  height: 54px;
  border-radius: 27px;
  background: linear-gradient(135deg, var(--limn-accent) 0%, var(--limn-accent-2) 100%);
  color: #fff;
  border: none;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 24px rgba(110, 168, 254, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  cursor: pointer;
  z-index: 200;
  transition: transform 0.2s var(--limn-ease),
              box-shadow 0.2s var(--limn-ease);
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.limn-fab:hover {
  transform: scale(1.05);
  box-shadow:
    0 12px 32px rgba(110, 168, 254, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.limn-fab:active {
  transform: scale(0.94);
}

.limn-fab.open {
  transform: rotate(45deg);
}

.limn-fab.open:hover {
  transform: rotate(45deg) scale(1.05);
}

.limn-fab.hidden {
  display: none;
}

.limn-fab-icon {
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  display: block;
  transition: transform 0.25s var(--limn-ease);
}

.limn-menu {
  position: fixed;
  bottom: calc(140px + env(safe-area-inset-bottom, 0));
  right: 20px;
  width: 260px;
  max-height: 65vh;
  overflow-y: auto;
  background: var(--limn-glass-2);
  backdrop-filter: blur(var(--limn-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--limn-blur)) saturate(180%);
  border: 1px solid var(--limn-border-2);
  border-radius: var(--limn-radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  padding: 8px;
  z-index: 300;
  display: none;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  scrollbar-width: thin;
}

.limn-menu.open {
  display: block;
}

.limn-menu::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--limn-accent-glow), transparent);
  opacity: 0.6;
  pointer-events: none;
}

.limn-menu-header {
  font-size: 10px;
  color: var(--limn-text-2);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  padding: 12px 12px 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.limn-menu-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--limn-border), transparent);
}

.limn-menu-header:first-child {
  padding-top: 6px;
}

.limn-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--limn-text-0);
  font-size: 13.5px;
  font-family: inherit;
  text-align: left;
  border-radius: var(--limn-radius);
  cursor: pointer;
  transition: background 0.12s var(--limn-ease);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.limn-menu-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 2px;
  background: linear-gradient(180deg, var(--limn-accent), var(--limn-accent-2));
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.15s var(--limn-ease);
}

.limn-menu-item:hover {
  background: var(--limn-accent-soft);
}

.limn-menu-item:hover::before {
  opacity: 1;
}

.limn-menu-item:active {
  background: rgba(110, 168, 254, 0.18);
}

.limn-menu-item .icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  border-radius: 7px;
  background: var(--limn-accent-soft);
  color: var(--limn-accent);
}

.limn-menu-item .label {
  flex: 1;
  font-weight: 500;
}

.limn-menu-item .shortcut {
  font-size: 10px;
  color: var(--limn-text-2);
  font-family: ui-monospace, "JetBrains Mono", monospace;
  padding: 3px 7px;
  background: var(--limn-bg-1);
  border: 1px solid var(--limn-border);
  border-radius: 5px;
  letter-spacing: 0.5px;
}

.limn-menu-divider {
  height: 1px;
  background: var(--limn-border);
  margin: 6px 10px;
}

.limn-menu-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}

.limn-menu-row .label {
  flex: 1;
  color: var(--limn-text-1);
  font-size: 13px;
  font-weight: 500;
}

.limn-menu-row .value {
  color: var(--limn-text-0);
  font-size: 13px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  margin-right: 4px;
  min-width: 28px;
  text-align: right;
}

.limn-menu-row-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--limn-bg-3);
  color: var(--limn-text-0);
  border: 1px solid var(--limn-border-2);
  font-size: 18px;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s var(--limn-ease), border-color 0.12s var(--limn-ease);
  touch-action: manipulation;
}

.limn-menu-row-btn:hover {
  background: var(--limn-bg-4);
  border-color: var(--limn-border-3);
}

.limn-status-pill {
  display: none;
}

.limn-search {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 250;
  background: var(--limn-glass-2);
  backdrop-filter: blur(var(--limn-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--limn-blur)) saturate(180%);
  border-bottom: 1px solid var(--limn-border);
  padding: 8px 10px;
  display: none;
  flex-direction: column;
  gap: 6px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.limn-search.open {
  display: flex;
}

.limn-search::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--limn-accent-glow), transparent);
  opacity: 0.5;
}

.limn-search-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.limn-search-replace-row {
  display: none;
}

.limn-search.with-replace .limn-search-replace-row {
  display: flex;
}

.limn-search-input {
  flex: 1;
  min-width: 0;
  background: var(--limn-bg-1);
  border: 1px solid var(--limn-border-2);
  border-radius: 8px;
  color: var(--limn-text-0);
  font-size: 13.5px;
  font-family: inherit;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s var(--limn-ease), box-shadow 0.15s var(--limn-ease);
}

.limn-search-input::placeholder {
  color: var(--limn-text-3);
}

.limn-search-input:focus {
  border-color: var(--limn-accent);
  box-shadow: 0 0 0 3px var(--limn-accent-soft);
}

.limn-search-toggle {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--limn-bg-2);
  border: 1px solid var(--limn-border-2);
  color: var(--limn-text-1);
  font-size: 12px;
  font-weight: 600;
  font-family: ui-monospace, monospace;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.limn-search-toggle.active {
  background: var(--limn-accent-soft);
  border-color: var(--limn-accent);
  color: var(--limn-accent);
}

.limn-search-count {
  color: var(--limn-text-2);
  font-size: 12px;
  font-family: ui-monospace, monospace;
  min-width: 44px;
  text-align: center;
  flex-shrink: 0;
}

.limn-search-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--limn-text-1);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.limn-search-icon:hover {
  background: var(--limn-bg-3);
  color: var(--limn-text-0);
}

.limn-search-btn {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--limn-bg-2);
  border: 1px solid var(--limn-border-2);
  color: var(--limn-text-0);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

.limn-tabs {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  align-items: stretch;
  background: var(--limn-glass);
  backdrop-filter: blur(var(--limn-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--limn-blur)) saturate(180%);
  border-bottom: 1px solid var(--limn-border);
  z-index: 250;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  user-select: none;
}

.limn-tabs.hidden {
  display: none;
}

.limn-tabs-list {
  flex: 1;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.limn-tabs-list::-webkit-scrollbar {
  display: none;
}

.limn-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  min-width: 100px;
  max-width: 220px;
  color: var(--limn-text-2);
  font-size: 12.5px;
  font-family: ui-monospace, monospace;
  cursor: pointer;
  border-right: 1px solid var(--limn-border);
  position: relative;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.12s var(--limn-ease), color 0.12s var(--limn-ease);
}

.limn-tab:hover {
  background: var(--limn-bg-2);
  color: var(--limn-text-1);
}

.limn-tab.active {
  background: var(--limn-bg-1);
  color: var(--limn-text-0);
}

.limn-tab.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--limn-accent), var(--limn-accent-2));
}

.limn-tab-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.limn-tab-dirty {
  color: var(--limn-warning);
  font-size: 10px;
  flex-shrink: 0;
}

.limn-tab-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.limn-tab-close {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: var(--limn-text-2);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  touch-action: manipulation;
}

.limn-tab-close:hover {
  background: rgba(248, 113, 113, 0.15);
  color: var(--limn-danger);
}

.limn-tabs-add {
  width: 40px;
  border: none;
  background: transparent;
  color: var(--limn-text-2);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-left: 1px solid var(--limn-border);
  touch-action: manipulation;
  transition: background 0.12s var(--limn-ease), color 0.12s var(--limn-ease);
}

.limn-tabs-add:hover {
  background: var(--limn-accent-soft);
  color: var(--limn-accent);
}

.limn-toast {
  position: fixed;
  bottom: calc(120px + env(safe-area-inset-bottom, 0));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--limn-glass-2);
  backdrop-filter: blur(var(--limn-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--limn-blur)) saturate(180%);
  color: var(--limn-text-0);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--limn-border-2);
  font-size: 13px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--limn-ease), transform 0.25s var(--limn-ease);
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.limn-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.limn-toast.success { border-color: rgba(74, 222, 128, 0.4); }
.limn-toast.error   { border-color: rgba(248, 113, 113, 0.4); }
.limn-toast.warning { border-color: rgba(251, 191, 36, 0.4); }

.limn-filetree-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 4000;
  display: none;
}

.limn-filetree-backdrop.open {
  display: block;
}

.limn-filetree {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: var(--limn-glass-2);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-right: 1px solid var(--limn-border-2);
  box-shadow: 16px 0 48px rgba(0, 0, 0, 0.6);
  z-index: 4001;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s var(--limn-ease);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.limn-filetree.open {
  transform: translateX(0);
}

.limn-filetree-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 12px;
  padding-top: calc(16px + env(safe-area-inset-top, 0));
  border-bottom: 1px solid var(--limn-border);
}

.limn-filetree-title {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--limn-text-2);
}

.limn-filetree-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--limn-text-1);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  transition: background 0.12s var(--limn-ease), border-color 0.12s var(--limn-ease);
}

.limn-filetree-btn:hover {
  background: var(--limn-accent-soft);
  color: var(--limn-accent);
  border-color: var(--limn-border-2);
}

.limn-filetree-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.limn-filetree-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--limn-text-3);
  font-size: 13px;
}

.limn-filetree-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--limn-radius);
  margin-bottom: 2px;
  cursor: pointer;
  position: relative;
  color: var(--limn-text-1);
  font-size: 13px;
  font-family: ui-monospace, monospace;
  min-height: 44px;
  touch-action: manipulation;
  transition: background 0.12s var(--limn-ease), color 0.12s var(--limn-ease);
}

.limn-filetree-row:hover {
  background: var(--limn-bg-3);
  color: var(--limn-text-0);
}

.limn-filetree-row.active {
  background: linear-gradient(90deg, var(--limn-accent-soft), transparent);
  color: var(--limn-text-0);
}

.limn-filetree-badge {
  width: 34px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  flex-shrink: 0;
}

.limn-filetree-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.limn-filetree-dirty {
  color: var(--limn-warning);
  font-size: 10px;
}

.limn-filetree-more {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--limn-text-2);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  touch-action: manipulation;
  transition: background 0.12s var(--limn-ease), color 0.12s var(--limn-ease);
}

.limn-filetree-more:hover {
  background: var(--limn-bg-4);
  color: var(--limn-text-0);
}

.limn-filetree-rowmenu {
  position: fixed;
  background: var(--limn-glass-2);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--limn-border-2);
  border-radius: var(--limn-radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  padding: 6px;
  z-index: 5000;
  min-width: 180px;
}

.limn-filetree-rowmenu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--limn-text-0);
  font-size: 13px;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s var(--limn-ease);
}

.limn-filetree-rowmenu-item:hover {
  background: var(--limn-accent-soft);
}

.limn-filetree-rowmenu-item .icon {
  width: 20px;
  text-align: center;
  font-size: 14px;
}
.limn-appbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  padding-top: env(safe-area-inset-top, 0);
  background: var(--limn-glass);
  backdrop-filter: blur(var(--limn-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--limn-blur)) saturate(180%);
  border-bottom: 1px solid var(--limn-border);
  z-index: 3600;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  user-select: none;
}

.limn-appbar.hidden {
  display: none;
}

.limn-appbar-title {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  color: var(--limn-text-0);
  font-size: 13.5px;
  font-weight: 600;
  font-family: ui-monospace, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
}

.limn-appbar-spacer {
  flex: 0 0 0;
}

.limn-appbar-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--limn-radius);
  background: transparent;
  border: 1px solid transparent;
  color: var(--limn-text-1);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  touch-action: manipulation;
  transition: background 0.12s var(--limn-ease), border-color 0.12s var(--limn-ease), color 0.12s var(--limn-ease);
}

.limn-appbar-btn:hover {
  background: var(--limn-bg-2);
  border-color: var(--limn-border-2);
  color: var(--limn-text-0);
}

.limn-appbar-btn.active {
  background: var(--limn-accent-soft);
  color: var(--limn-accent);
  border-color: var(--limn-accent);
}

.limn-statusbar {
  position: fixed;
  left: 0;
  right: 0;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  background: var(--limn-glass-2);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid var(--limn-border);
  z-index: 3550;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--limn-text-2);
  user-select: none;
}

.limn-statusbar-left,
.limn-statusbar-right {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}

.limn-statusbar-item {
  height: 20px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 5px;
  background: transparent;
  border: none;
  color: var(--limn-text-2);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  touch-action: manipulation;
  white-space: nowrap;
  transition: background 0.12s var(--limn-ease), color 0.12s var(--limn-ease);
}

.limn-statusbar-item:hover {
  background: var(--limn-bg-3);
  color: var(--limn-text-1);
}

.limn-statusbar-item.static {
  cursor: default;
}

.limn-statusbar-item.static:hover {
  background: transparent;
  color: var(--limn-text-2);
}

.limn-statusbar-item.hidden {
  display: none;
}

.limn-statusbar-item.status-saved  { color: var(--limn-success); }
.limn-statusbar-item.status-dirty  { color: var(--limn-warning); }
.limn-statusbar-item.status-saving { color: var(--limn-accent); }

.limn-contextmenu {
  position: fixed;
  z-index: 8500;
  min-width: 200px;
  background: var(--limn-glass-2);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--limn-border-2);
  border-radius: var(--limn-radius-lg);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.7);
  padding: 6px;
  display: none;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  max-height: 70vh;
  overflow-y: auto;
}

.limn-contextmenu.open {
  display: block;
}

.limn-contextmenu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--limn-text-0);
  font-size: 13.5px;
  text-align: left;
  border-radius: var(--limn-radius);
  cursor: pointer;
  touch-action: manipulation;
  position: relative;
  transition: background 0.12s var(--limn-ease);
}

.limn-contextmenu-item:hover {
  background: var(--limn-accent-soft);
}

.limn-contextmenu-item:disabled {
  opacity: 0.32;
  cursor: default;
}

.limn-contextmenu-item:disabled:hover {
  background: transparent;
}

.limn-contextmenu-item .icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--limn-accent-soft);
  color: var(--limn-accent);
}

.limn-contextmenu-item .label {
  flex: 1;
}

.limn-contextmenu-item .shortcut {
  font-size: 10px;
  color: var(--limn-text-2);
  font-family: ui-monospace, monospace;
  padding: 2px 6px;
  background: var(--limn-bg-1);
  border: 1px solid var(--limn-border);
  border-radius: 4px;
}

.limn-contextmenu-divider {
  height: 1px;
  background: var(--limn-border);
  margin: 5px 8px;
}

.limn-preview {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 9000;
  display: none;
  flex-direction: column;
}

.limn-preview.open {
  display: flex;
}

.limn-preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--limn-glass-2);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--limn-border);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.limn-preview-title {
  color: var(--limn-text-0);
  font-size: 13px;
  font-weight: 600;
}

.limn-preview-btn {
  padding: 6px 12px;
  border-radius: var(--limn-radius);
  background: var(--limn-bg-3);
  border: 1px solid var(--limn-border-2);
  color: var(--limn-text-0);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s var(--limn-ease), border-color 0.12s var(--limn-ease);
}

.limn-preview-btn:hover {
  background: var(--limn-bg-4);
  border-color: var(--limn-border-3);
}

.limn-preview-close {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.limn-preview-frame-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.limn-preview-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #fff;
}

.limn-newfile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.limn-newfile-backdrop.open {
  display: flex;
}

.limn-newfile {
  width: 100%;
  max-width: 380px;
  background: var(--limn-glass-2);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--limn-border-2);
  border-radius: var(--limn-radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  padding: 20px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.limn-newfile-header {
  font-size: 15px;
  font-weight: 700;
  color: var(--limn-text-0);
  margin-bottom: 16px;
}

.limn-newfile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.limn-newfile-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--limn-bg-2);
  border: 1px solid var(--limn-border-2);
  border-radius: var(--limn-radius);
  cursor: pointer;
  color: var(--limn-text-0);
  font-size: 13px;
  text-align: left;
  touch-action: manipulation;
  transition: background 0.12s var(--limn-ease), border-color 0.12s var(--limn-ease);
}

.limn-newfile-item:hover {
  background: var(--limn-bg-3);
  border-color: var(--limn-border-3);
}

.limn-newfile-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.limn-newfile-label {
  flex: 1;
  font-weight: 500;
}

.limn-newfile-cancel {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--limn-border-2);
  border-radius: var(--limn-radius);
  color: var(--limn-text-1);
  font-size: 13px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.12s var(--limn-ease), border-color 0.12s var(--limn-ease);
}

.limn-newfile-cancel:hover {
  background: var(--limn-bg-2);
  border-color: var(--limn-border-3);
}

.limn-langpick-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.limn-langpick-backdrop.open {
  display: flex;
}

.limn-langpick {
  width: 100%;
  max-width: 320px;
  background: var(--limn-glass-2);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--limn-border-2);
  border-radius: var(--limn-radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  padding: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.limn-langpick-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--limn-text-0);
  margin-bottom: 12px;
}

.limn-langpick-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.limn-langpick-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: transparent;
  border: none;
  color: var(--limn-text-0);
  font-size: 14px;
  text-align: left;
  border-radius: var(--limn-radius);
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.12s var(--limn-ease);
}

.limn-langpick-item:hover {
  background: var(--limn-accent-soft);
}

.limn-langpick-item .check {
  color: var(--limn-accent);
  opacity: 0;
}

.limn-langpick-item.active .check {
  opacity: 1;
}

.limn-langpick-item.active {
  background: var(--limn-accent-soft);
  color: var(--limn-accent);
}

.limn-langpick-cancel {
  width: 100%;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--limn-border-2);
  border-radius: var(--limn-radius);
  color: var(--limn-text-1);
  font-size: 13px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.12s var(--limn-ease), border-color 0.12s var(--limn-ease);
}

.limn-langpick-cancel:hover {
  background: var(--limn-bg-2);
  border-color: var(--limn-border-3);
}

body.game-open .limn-fab,
body.game-open .limn-menu,
body.game-open .limn-toolbar,
body.game-open .limn-toolbar *,
body.game-open .limn-menu * {
  animation: none !important;
  transition: none !important;
}

body.game-open .limn-toolbar,
body.game-open .limn-menu,
body.game-open .limn-filetree,
body.game-open .limn-appbar,
body.game-open .limn-statusbar,
body.game-open .limn-contextmenu {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (min-width: 900px) {
  .limn-toolbar {
    display: none;
  }
  .limn-fab {
    bottom: 24px;
  }
  .limn-menu {
    bottom: 92px;
  }
}

.limn-autocomplete {
  position: fixed;
  z-index: 8000;
  min-width: 200px;
  max-width: 320px;
  max-height: 240px;
  background: var(--limn-glass-2);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--limn-border-2);
  border-radius: var(--limn-radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  padding: 4px;
  display: none;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
  touch-action: none;
  pointer-events: auto;
}

.limn-autocomplete.open {
  display: block;
}

.limn-autocomplete-list {
  max-height: 232px;
  overflow-y: auto;
  scrollbar-width: thin;
  touch-action: none;
}

.limn-autocomplete-list::-webkit-scrollbar {
  width: 6px;
}

.limn-autocomplete-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.limn-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--limn-text-0);
  font-size: 13px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  line-height: 1.3;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.limn-autocomplete-item.selected {
  background: linear-gradient(90deg, rgba(110, 168, 254, 0.22), rgba(110, 168, 254, 0.06));
  color: var(--limn-accent);
}

.limn-autocomplete-item .kind {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--limn-accent-soft);
  color: var(--limn-accent);
}

.limn-autocomplete-item .kind.kind-keyword {
  background: rgba(86, 156, 214, 0.18);
  color: #569cd6;
}

.limn-autocomplete-item .kind.kind-builtin {
  background: rgba(78, 201, 176, 0.18);
  color: #4ec9b0;
}

.limn-autocomplete-item .kind.kind-literal {
  background: rgba(181, 206, 168, 0.18);
  color: #b5cea8;
}

.limn-autocomplete-item .kind.kind-tag {
  background: rgba(227, 76, 38, 0.18);
  color: #e34c26;
}

.limn-autocomplete-item .kind.kind-value {
  background: rgba(41, 101, 241, 0.18);
  color: #2965f1;
}

.limn-autocomplete-item .kind.kind-atrule {
  background: rgba(163, 113, 247, 0.18);
  color: #a371f7;
}

.limn-autocomplete-item .kind.kind-pseudo {
  background: rgba(236, 72, 153, 0.18);
  color: #ec4899;
}

.limn-autocomplete-item .label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.game-open .limn-autocomplete {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(18, 20, 29, 0.99) !important;
}

.limn-cmd-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9500;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  padding-left: 12px;
  padding-right: 12px;
}

.limn-cmd-backdrop.open {
  display: flex;
}

.limn-cmd {
  width: 100%;
  max-width: 520px;
  background: var(--limn-glass-2);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--limn-border-2);
  border-radius: var(--limn-radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.limn-cmd-input {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--limn-border);
  color: var(--limn-text-0);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.limn-cmd-input::placeholder {
  color: var(--limn-text-3);
}

.limn-cmd-list {
  max-height: 50vh;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
}

.limn-cmd-list::-webkit-scrollbar {
  width: 6px;
}

.limn-cmd-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.limn-cmd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--limn-text-0);
  font-size: 13.5px;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.12s var(--limn-ease);
}

.limn-cmd-item.selected {
  background: linear-gradient(90deg, rgba(110, 168, 254, 0.22), rgba(110, 168, 254, 0.06));
  color: var(--limn-accent);
}

.limn-cmd-group {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--limn-text-3);
  min-width: 56px;
  flex-shrink: 0;
}

.limn-cmd-item.selected .limn-cmd-group {
  color: var(--limn-accent);
  opacity: 0.7;
}

.limn-cmd-icon {
  width: 20px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.limn-cmd-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.limn-cmd-shortcut {
  font-size: 10px;
  font-family: ui-monospace, monospace;
  color: var(--limn-text-2);
  padding: 3px 7px;
  background: var(--limn-bg-1);
  border: 1px solid var(--limn-border);
  border-radius: 5px;
  flex-shrink: 0;
}

.limn-cmd-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--limn-text-3);
  font-size: 13px;
}

.limn-breadcrumb {
  position: fixed;
  left: 0;
  right: 0;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 10px;
  background: var(--limn-glass);
  backdrop-filter: blur(var(--limn-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--limn-blur)) saturate(180%);
  border-bottom: 1px solid var(--limn-border);
  z-index: 249;
  font-family: ui-monospace, monospace;
  font-size: 11.5px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  white-space: nowrap;
}

.limn-breadcrumb::-webkit-scrollbar {
  display: none;
}

.limn-breadcrumb.hidden {
  display: none;
}

.limn-breadcrumb-item {
  height: 20px;
  padding: 0 8px;
  border-radius: 5px;
  background: transparent;
  border: none;
  color: var(--limn-text-1);
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  transition: background 0.12s var(--limn-ease), color 0.12s var(--limn-ease);
}

.limn-breadcrumb-item:not(.static):hover {
  background: var(--limn-accent-soft);
  color: var(--limn-accent);
}

.limn-breadcrumb-item.static {
  cursor: default;
  color: var(--limn-text-2);
}

.limn-breadcrumb-item[data-kind="symbol"] {
  color: var(--limn-accent-2);
}

.limn-breadcrumb-sep {
  color: var(--limn-text-3);
  font-size: 11px;
  flex-shrink: 0;
  padding: 0 1px;
}

.limn-sym-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9550;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  padding-left: 12px;
  padding-right: 12px;
}

.limn-sym-backdrop.open {
  display: flex;
}

.limn-sym {
  width: 100%;
  max-width: 520px;
  background: var(--limn-glass-2);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--limn-border-2);
  border-radius: var(--limn-radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.limn-sym-input {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--limn-border);
  color: var(--limn-text-0);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.limn-sym-input::placeholder {
  color: var(--limn-text-3);
}

.limn-sym-list {
  max-height: 50vh;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
}

.limn-sym-list::-webkit-scrollbar {
  width: 6px;
}

.limn-sym-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.limn-sym-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--limn-text-0);
  font-size: 13.5px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: background 0.12s var(--limn-ease);
}

.limn-sym-item.selected {
  background: linear-gradient(90deg, rgba(110, 168, 254, 0.22), rgba(110, 168, 254, 0.06));
  color: var(--limn-accent);
}

.limn-sym-badge {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--limn-accent-soft);
  color: var(--limn-accent);
  font-family: ui-monospace, monospace;
}

.limn-sym-badge.kind-function { background: rgba(220, 220, 170, 0.18); color: #dcdcaa; }
.limn-sym-badge.kind-method   { background: rgba(220, 220, 170, 0.18); color: #dcdcaa; }
.limn-sym-badge.kind-class    { background: rgba(78, 201, 176, 0.18); color: #4ec9b0; }
.limn-sym-badge.kind-constant { background: rgba(86, 156, 214, 0.18); color: #569cd6; }
.limn-sym-badge.kind-selector { background: rgba(227, 76, 38, 0.18); color: #e34c26; }

.limn-sym-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, "JetBrains Mono", monospace;
}

.limn-sym-line {
  font-size: 10.5px;
  font-family: ui-monospace, monospace;
  color: var(--limn-text-3);
  padding: 2px 6px;
  background: var(--limn-bg-1);
  border: 1px solid var(--limn-border);
  border-radius: 4px;
  flex-shrink: 0;
}

.limn-sym-item.selected .limn-sym-line {
  color: var(--limn-accent);
  border-color: rgba(110, 168, 254, 0.4);
}

.limn-sym-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--limn-text-3);
  font-size: 13px;
}

.limn-stats-popup {
  position: fixed;
  z-index: 8600;
  min-width: 220px;
  background: var(--limn-glass-2);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--limn-border-2);
  border-radius: var(--limn-radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  padding: 12px 14px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--limn-text-0);
  display: none;
}

.limn-stats-popup.open {
  display: block;
}

.limn-stats-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  gap: 24px;
}

.limn-stats-row .label {
  color: var(--limn-text-2);
}

.limn-stats-row .value {
  color: var(--limn-text-0);
}

.limn-statusbar-item.wrap-on {
  color: var(--limn-success);
}

.limn-statusbar-item.wrap-off {
  color: var(--limn-warning);
}

.limn-statusbar-item.diag-ok { color: var(--limn-success); }
.limn-statusbar-item.diag-warn { color: var(--limn-warning); }
.limn-statusbar-item.diag-err { color: var(--limn-danger); }

.limn-diag-popup {
  position: fixed;
  z-index: 8700;
  min-width: 260px;
  max-width: 380px;
  max-height: 50vh;
  overflow-y: auto;
  background: var(--limn-glass-2);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--limn-border-2);
  border-radius: var(--limn-radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  padding: 6px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--limn-text-0);
  display: none;
}

.limn-diag-popup.open {
  display: block;
}

.limn-diag-empty {
  padding: 20px 14px;
  text-align: center;
  color: var(--limn-text-3);
}

.limn-diag-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.12s var(--limn-ease);
}

.limn-diag-row:hover {
  background: var(--limn-accent-soft);
}

.limn-diag-icon {
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 700;
}

.limn-diag-row.kind-error .limn-diag-icon {
  color: var(--limn-danger);
}

.limn-diag-row.kind-warning .limn-diag-icon {
  color: var(--limn-warning);
}

.limn-diag-text {
  flex: 1;
  line-height: 1.4;
}

.limn-minimap {
  position: absolute;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  border-left: 1px solid var(--limn-border);
  overflow: hidden;
  pointer-events: auto;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  display: block;
}

.limn-minimap.hidden {
  display: none;
}

.limn-minimap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.limn-statusbar-item.minimap-on { color: var(--limn-accent); }
.limn-statusbar-item.minimap-off { color: var(--limn-text-3); }

.limn-snippet-menu {
  position: fixed;
  z-index: 8600;
  min-width: 220px;
  max-width: 320px;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--limn-glass-2);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--limn-border-2);
  border-radius: var(--limn-radius-lg);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.7);
  padding: 8px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.limn-snippet-menu-header {
  font-size: 11px;
  color: var(--limn-text-2);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 6px 10px 10px;
}

.limn-snippet-menu-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.limn-snippet-menu-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--limn-text-0);
  font-size: 13px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s var(--limn-ease), color 0.12s var(--limn-ease);
}

.limn-snippet-menu-item:hover {
  background: var(--limn-accent-soft);
  color: var(--limn-accent);
}

.limn-diag-fix {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--limn-accent-soft);
  border: 1px solid rgba(110, 168, 254, 0.4);
  color: var(--limn-accent);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  margin-left: 6px;
  flex-shrink: 0;
  transition: background 0.12s var(--limn-ease);
}

.limn-diag-fix:hover {
  background: rgba(110, 168, 254, 0.22);
}

.limn-quickfix {
  position: fixed;
  z-index: 8700;
  min-width: 220px;
  max-width: 320px;
  background: var(--limn-glass-2);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--limn-border-2);
  border-radius: var(--limn-radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  padding: 6px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  display: none;
}

.limn-quickfix.open {
  display: block;
}

.limn-quickfix-header {
  font-size: 10px;
  color: var(--limn-text-2);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 6px 10px 8px;
}

.limn-quickfix-item {
  display: block;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: none;
  color: var(--limn-text-0);
  font-size: 13px;
  font-family: inherit;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s var(--limn-ease), color 0.12s var(--limn-ease);
}

.limn-quickfix-item:hover {
  background: var(--limn-accent-soft);
  color: var(--limn-accent);
}

.limn-goto-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.limn-goto-backdrop.open {
  display: flex;
}

.limn-goto {
  width: 100%;
  max-width: 320px;
  background: var(--limn-glass-2);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--limn-border-2);
  border-radius: var(--limn-radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  padding: 18px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.limn-goto-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--limn-text-0);
  margin-bottom: 12px;
}

.limn-goto-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--limn-bg-1);
  border: 1px solid var(--limn-border-2);
  border-radius: var(--limn-radius);
  color: var(--limn-text-0);
  font-size: 15px;
  font-family: ui-monospace, monospace;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 14px;
  transition: border-color 0.15s var(--limn-ease), box-shadow 0.15s var(--limn-ease);
}

.limn-goto-input:focus {
  border-color: var(--limn-accent);
  box-shadow: 0 0 0 3px var(--limn-accent-soft);
}

.limn-goto-actions {
  display: flex;
  gap: 10px;
}

.limn-goto-cancel,
.limn-goto-go {
  flex: 1;
  padding: 11px;
  border-radius: var(--limn-radius);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.12s var(--limn-ease), border-color 0.12s var(--limn-ease), transform 0.08s var(--limn-ease);
}

.limn-goto-cancel {
  background: transparent;
  border: 1px solid var(--limn-border-2);
  color: var(--limn-text-1);
}

.limn-goto-cancel:hover {
  background: var(--limn-bg-2);
  border-color: var(--limn-border-3);
}

.limn-goto-go {
  background: linear-gradient(135deg, var(--limn-accent), var(--limn-accent-2));
  border: none;
  color: #fff;
  box-shadow: 0 4px 16px rgba(110, 168, 254, 0.35);
}

.limn-goto-go:hover {
  box-shadow: 0 6px 22px rgba(110, 168, 254, 0.5);
}

.limn-statusbar-item.scrolltop {
  color: var(--limn-accent);
  font-weight: 700;
  font-size: 14px;
  padding: 0 10px;
}

.limn-hover-tooltip {
  position: fixed;
  z-index: 8800;
  max-width: 320px;
  padding: 8px 12px;
  background: var(--limn-glass-2);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--limn-border-2);
  border-radius: var(--limn-radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  color: var(--limn-text-0);
  font-family: ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
  display: none;
  white-space: normal;
  word-wrap: break-word;
}

.limn-hover-tooltip.open {
  display: block;
}
