/* 寻霖塘人类端 · 待开箱 + 下潜入口（旁挂增强）
 * task_a41b18f53c1e · 小月
 * 夜色水塘基调：深青玻璃 + 月白文字 + 一点月光金。
 */

.xlte-fabbox {
  position: fixed;
  left: calc(14px + env(safe-area-inset-left, 0px));
  right: auto;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
  z-index: 90;
}

.xlte-fab {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(158, 205, 216, 0.35);
  background: rgba(11, 29, 38, 0.88);
  box-shadow: 0 4px 14px rgba(2, 10, 14, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

.xlte-fab-ico { font-size: 22px; line-height: 1; }

.xlte-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e8b84b;
  color: #2a1e05;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.xlte-fab-glow {
  animation: xlte-glow 2.4s ease-in-out infinite;
  border-color: rgba(232, 184, 75, 0.65);
}

@keyframes xlte-glow {
  0%, 100% { box-shadow: 0 4px 14px rgba(2, 10, 14, 0.5), 0 0 0 0 rgba(232, 184, 75, 0.35); }
  50% { box-shadow: 0 4px 14px rgba(2, 10, 14, 0.5), 0 0 12px 3px rgba(232, 184, 75, 0.28); }
}

.xlte-panel {
  position: fixed;
  left: calc(12px + env(safe-area-inset-left, 0px));
  right: auto;
  bottom: calc(134px + env(safe-area-inset-bottom, 0px));
  width: min(340px, calc(100vw - 24px));
  max-height: min(62vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 95;
  border-radius: 14px;
  border: 1px solid rgba(158, 205, 216, 0.28);
  background: rgba(10, 26, 35, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 34px rgba(1, 8, 12, 0.62);
  padding: 12px 14px 14px;
  color: #dceef2;
  font-size: 14px;
  line-height: 1.55;
  display: none;
}

.xlte-panel.xlte-open { display: block; animation: xlte-rise 0.18s ease-out; }

@keyframes xlte-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.xlte-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.xlte-panel-title {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #9ecdd8;
}

.xlte-close {
  border: 0;
  background: transparent;
  color: #9ecdd8;
  font-size: 20px;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
}

.xlte-h3 {
  margin: 10px 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #eef7f9;
}

.xlte-toast {
  margin: 6px 0;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(232, 184, 75, 0.14);
  border: 1px solid rgba(232, 184, 75, 0.4);
  color: #ffd98a;
  font-size: 13px;
}

.xlte-empty { color: #8fb3bd; margin: 6px 0; }

.xlte-chest {
  border: 1px solid rgba(158, 205, 216, 0.22);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0;
  background: rgba(17, 41, 53, 0.55);
}

.xlte-chest-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.xlte-chest-name { font-weight: 600; color: #f2e3b6; }

.xlte-chest-uid {
  font-size: 11px;
  color: #6f96a1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.xlte-chest-desc {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: #a9c6ce;
}

.xlte-chest-need {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: #ffd98a;
}

.xlte-btn {
  margin-top: 10px;
  width: 100%;
  border: 1px solid rgba(232, 184, 75, 0.55);
  border-radius: 9px;
  background: rgba(232, 184, 75, 0.16);
  color: #ffe1a1;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.xlte-btn:active:not(:disabled) { background: rgba(232, 184, 75, 0.28); }

.xlte-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.xlte-btn-ghost {
  border-color: rgba(158, 205, 216, 0.4);
  background: rgba(158, 205, 216, 0.1);
  color: #cfe7ec;
  width: auto;
  flex: 1 1 auto;
}

.xlte-dive-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.xlte-dive-tip {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: #8fb3bd;
}

.xlte-result {
  border: 1px solid rgba(232, 184, 75, 0.35);
  border-radius: 10px;
  background: rgba(23, 36, 30, 0.5);
  padding: 10px 12px;
  margin: 8px 0;
}

/* 结果卡：真实落袋主数字 + 引擎面值次级 + 今日上限行（task_56b1af098fd5） */
.xlte-result-main { margin: 6px 0 2px; font-size: 16px; font-weight: 700; color: #ecd9a0; }
.xlte-result-main.xlte-zero { color: #9fc3cc; font-weight: 600; }
.xlte-result-balance { font-size: 12px; font-weight: 400; color: #9fc3cc; }
.xlte-result-sub { margin: 0 0 4px; font-size: 12px; color: #8fb3bd; }
.xlte-result-cap { margin: 0 0 6px; font-size: 12px; color: #d8b56a; }
.xlte-result-cap.xlte-cap-full { color: #e8a06a; font-weight: 700; }

.xlte-result-text {
  margin: 6px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 13px;
  color: #e6f2f5;
  max-height: 220px;
  overflow-y: auto;
}

.xlte-foot {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: #6f96a1;
}

@media (min-width: 640px) {
  .xlte-fabbox { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .xlte-panel { bottom: calc(146px + env(safe-area-inset-bottom, 0px)); }
}
