/* 续杯工具下载弹窗（pay.php 领码成功后 / client/ 货架页「已有激活码」入口共用）。
   自带配色，不依赖宿主页主题（支付宝风浅色页 & 深色货架页都能压住）。 */
.cdl-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cdl-modal[hidden] { display: none; }
.cdl-backdrop { position: absolute; inset: 0; background: rgba(8, 14, 28, .62); backdrop-filter: blur(2px); }
.cdl-panel {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; color: #1a1a1a; border-radius: 16px; padding: 22px 20px 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  text-align: left;
}
.cdl-x { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 24px; line-height: 1; color: #8a93a6; cursor: pointer; padding: 4px 8px; }
.cdl-x:hover { color: #1a1a1a; }
.cdl-title { margin: 0 24px 6px 0; font-size: 18px; font-weight: 700; }
.cdl-sub { margin: 0 0 14px; color: #5b6478; font-size: 13px; }
.cdl-warn { margin: -6px 0 14px; color: #dc2626; font-size: 13px; font-weight: 700; line-height: 1.55; }
.cdl-groups { display: grid; gap: 12px; }
.cdl-group { border: 1px solid #e7eaf0; border-radius: 12px; padding: 12px 12px 10px; }
.cdl-group.is-mine { border-color: #1677ff; box-shadow: 0 0 0 2px rgba(22, 119, 255, .12); }
.cdl-group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cdl-os-icon { font-size: 16px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.cdl-os-svg { width: 18px; height: 18px; display: block; }
.cdl-os-name { font-weight: 700; font-size: 15px; }
.cdl-mine { font-size: 11px; color: #1677ff; background: #e8f1ff; border-radius: 999px; padding: 1px 8px; }
.cdl-mine[hidden] { display: none; }
.cdl-items { display: grid; gap: 6px; }
.cdl-item {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "main btn" "meta btn"; align-items: center; column-gap: 12px;
  text-decoration: none; color: inherit; background: #f6f8fb; border-radius: 10px; padding: 9px 12px;
  transition: background .15s;
}
.cdl-item:hover { background: #eef3fb; }
.cdl-item-main { grid-area: main; font-size: 14px; }
.cdl-item-meta { grid-area: meta; font-size: 12px; color: #8a93a6; }
.cdl-item-btn { grid-area: btn; background: #1677ff; color: #fff; border-radius: 8px; padding: 7px 16px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.cdl-item:hover .cdl-item-btn { background: #0e5fd8; }
.cdl-notes { font-size: 12px; color: #5b6478; padding: 2px 4px 0; }
.cdl-hint { margin: 8px 0 0; font-size: 12px; color: #8a93a6; }
.cdl-foot { margin: 14px 0 0; font-size: 12px; color: #8a93a6; text-align: center; }
.cdl-foot a { color: #1677ff; }
body.cdl-lock { overflow: hidden; }
