/* ============================================================
   Context menu + toast styles
   ============================================================ */

.ctx-menu {
  position: fixed;
  z-index: 99000;
  min-width: 220px;
  background: linear-gradient(180deg, #fff 0%, #ece9d8 100%);
  border: 1px solid #6f6a55;
  box-shadow:
    inset 1px 1px 0 #fff,
    3px 3px 0 rgba(0,0,0,0.18),
    0 8px 22px rgba(0,0,0,0.35);
  font-family: var(--ff-ui);
  font-size: 12px;
  color: #111;
  padding: 3px;
  user-select: none;
}

.ctx-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 18px 5px 8px;
  cursor: pointer;
  border-radius: 2px;
  white-space: nowrap;
  position: relative;
}
.ctx-item span:first-of-type,
.ctx-item > span {
  flex: 1;
}
.ctx-item small {
  color: #888;
  font-size: 11px;
  margin-left: 18px;
}
.ctx-item:hover {
  background: linear-gradient(180deg, #316ac5, #1851bc);
  color: #fff;
}
.ctx-item:hover small { color: #cfdcfb; }
.ctx-item[data-disabled="1"] {
  opacity: 0.45;
  pointer-events: none;
  color: #777;
}
.ctx-item[data-checked="1"] {
  font-weight: 700;
}
.ctx-arrow {
  margin-left: auto;
  color: #555;
  font-size: 11px;
}
.ctx-item:hover .ctx-arrow { color: #fff; }
.ctx-sep {
  height: 1px;
  background: #b0ab95;
  margin: 4px 4px;
  box-shadow: 0 1px 0 #fff;
}

/* CRT theme adaption */
[data-theme="crt"] .ctx-menu {
  background: linear-gradient(180deg, #0f1a13 0%, #050a06 100%);
  border-color: #2a4d32;
  color: #6cff6c;
  box-shadow:
    inset 1px 1px 0 #1e3a24,
    3px 3px 0 rgba(0,0,0,0.5),
    0 8px 22px rgba(0,0,0,0.6);
}
[data-theme="crt"] .ctx-item:hover {
  background: linear-gradient(180deg, #1d4b22, #0f2512);
  color: #8fff8f;
}
[data-theme="crt"] .ctx-sep { background: #1e3a24; box-shadow: 0 1px 0 #2a4d32; }

/* ============================================================
   Toast
   ============================================================ */
.chit-toast {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99500;
  padding: 8px 14px;
  background: #2a2a2a;
  color: #fff;
  font-family: var(--ff-ui);
  font-size: 12px;
  border: 1px solid #000;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
  border-radius: 2px;
}
[data-theme="crt"] .chit-toast {
  background: #0f1a13;
  color: #8fff8f;
  border-color: #2a4d32;
}
