/* SwiftIdc • Linux 工作台代理申请：登录态条 + 滑块验证 + 审核/支付状态
   与 dev-form.css 的 .dev-req-* 配套，只补充申请页特有区块。 */

.agent-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0 20px;
  padding: 14px 16px;
  border: 1px solid #e5eeef;
  border-radius: 12px;
  background: linear-gradient(180deg, #fafcfc, #f6f9f9);
}

.agent-session-main {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #1f2d3d;
}

.agent-session-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c0c4cc;
  flex: 0 0 auto;
}

.agent-session.is-on .agent-session-dot {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.agent-session.is-off .agent-session-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(13,117,130), 0.14);
}

.agent-session-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-session .btn {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.agent-session .btn-ghost {
  border: 1px solid #cfe1e2;
  color: #117081;
  background: #fff;
}

.agent-slider {
  margin: 6px 0 18px;
  padding: 14px 14px 10px;
  border: 1px solid #e6eff0;
  border-radius: 12px;
  background: #f8fbff;
}

.agent-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #5b6b80;
  margin-bottom: 10px;
}

.agent-slider-refresh {
  border: 0;
  background: none;
  color: #117081;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.agent-slider-refresh:hover {
  text-decoration: underline;
}

.agent-slider-stage {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 360 / 180;
  overflow: hidden;
  border-radius: 8px;
  background: #f2f7f7;
  user-select: none;
  touch-action: none;
}

.agent-slider-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  -webkit-user-drag: none;
}

.agent-slider-piece {
  position: absolute;
  top: 0;
  left: 0;
  background-repeat: no-repeat;
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(17,55,58, 0.28));
  will-change: transform;
}

.agent-slider-track {
  position: relative;
  height: 44px;
  margin-top: 14px;
  border-radius: 22px;
  background: #ecf3f4;
  overflow: hidden;
  outline: none;
}

.agent-slider-track:focus-visible {
  box-shadow: 0 0 0 2px rgba(17,112,129), 0.35);
}

.agent-slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 22px;
  background: linear-gradient(90deg, #e8f0f1, #d7e5e6);
}

.agent-slider-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #117081;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: grab;
  box-shadow: 0 4px 12px rgba(17,112,129), 0.35);
  touch-action: none;
}

.agent-slider-thumb:active {
  cursor: grabbing;
}

.agent-slider-tip {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8492a6;
  font-size: 13px;
  pointer-events: none;
}

.agent-slider.is-pass .agent-slider-thumb {
  background: #16a34a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.32);
}

.agent-slider.is-pass .agent-slider-fill {
  background: linear-gradient(90deg, #dcfce7, #bbf7d0);
}

.agent-slider.is-pass .agent-slider-tip {
  color: #15803d;
  font-weight: 600;
}

.agent-slider.is-fail .agent-slider-thumb {
  background: #dc2626;
}

.agent-slider-state {
  font-size: 13px;
}

.agent-slider .dev-req-hint {
  margin: 8px 0 0;
}

#agentApplyResult {
  border: 1px solid #e5eeef;
  border-radius: 12px;
  background: #fbfdff;
}

#agentApplyResult p:first-child {
  margin-top: 0;
}

.agent-result-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  margin-right: 8px;
  background: #f2f7f7;
  color: #20626b;
}

.agent-result-tag.ok {
  background: #f0f9eb;
  color: #3f9c35;
}

.agent-result-tag.warn {
  background: #fef0f0;
  color: #c45656;
}

.agent-result-tag.pay {
  background: #f3f8f8;
  color: #117081;
}

@media (max-width: 640px) {
  .agent-session {
    align-items: flex-start;
  }
  .agent-session-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .agent-slider-stage {
    max-width: 100%;
  }
}
/* 申请主体（登录态自动识别）与未登录引导 */
.agent-member {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 16px;
  padding: 12px 14px;
  border: 1px solid #e5eeef;
  border-radius: 10px;
  background: #fafcfc;
  font-size: 14px;
  color: #1f2d3d;
}
.agent-member-label {
  color: #5b6b80;
  font-size: 13px;
}
.agent-member strong {
  font-size: 15px;
}
.agent-member-note {
  color: #8492a6;
  font-size: 12px;
}

.agent-guest {
  margin: 2px 0 16px;
  padding: 14px 16px;
  border: 1px solid #dce8e9;
  border-radius: 10px;
  background: #f7fafa;
}
.agent-guest p {
  margin: 0 0 10px;
  color: #166b76;
  font-size: 14px;
  line-height: 1.7;
}
.agent-guest .btn {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.agent-slider.is-disabled {
  opacity: 0.55;
}
.agent-slider.is-disabled .agent-slider-thumb {
  cursor: not-allowed;
  background: #a9b6c8;
  box-shadow: none;
}

/* 轨道与画布同宽：拖动距离与拼图位移一一对应，避免拖到底却对不上落点 */
.agent-slider-track {
  max-width: 360px;
}
