body {
  margin: 0;
  background:
    radial-gradient(1200px 520px at 50% -100px, rgba(22, 119, 255, 0.14), transparent 58%),
    linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #1f2937;
  min-height: 100vh;
}
#base {
  position: relative;
  min-height: 100vh;
  padding: 28px 20px 100px;
  box-sizing: border-box;
}
.page-shell {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

/* 宽屏：内容居中，PRD 靠右；头部绿色 */
.admin-prd-panel { display: none; }
@media (min-width: 1280px) {
  .admin-review-layout {
    display: grid;
    grid-template-columns: 1fr minmax(0, 920px) 1fr;
    column-gap: 24px;
    align-items: start;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 24px;
    box-sizing: border-box;
  }
  #base {
    grid-column: 2;
    width: 100%;
    max-width: 920px;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
  }
  .page-shell {
    margin: 0;
    max-width: 100%;
  }
  .admin-prd-panel {
    display: flex;
    flex-direction: column;
    grid-column: 3;
    justify-self: end;
    width: min(400px, 100%);
    max-height: calc(100vh - 24px);
    overflow: hidden;
    position: sticky;
    top: 12px;
    margin-top: 12px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(13, 159, 79, 0.14);
    color: #111827;
    box-sizing: border-box;
  }
  .admin-prd-panel .prd-hd {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    padding: 10px 14px;
    background: linear-gradient(135deg, #12b35a 0%, #0d9f4f 55%, #067a3a 100%);
    color: #fff;
    border-radius: 12px 12px 0 0;
  }
  .admin-prd-panel .prd-hd h1 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
  }
  .admin-prd-panel .prd-bd {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 14px 56px;
    font-size: 12px;
    line-height: 1.55;
    color: #374151;
    -webkit-overflow-scrolling: touch;
  }
  .admin-prd-panel h2 {
    font-size: 14px;
    font-weight: 800;
    color: #065f46;
    margin: 14px 0 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #d1fae5;
  }
  .admin-prd-panel h2:first-of-type { margin-top: 4px; }
  .admin-prd-panel h3 {
    font-size: 12px;
    font-weight: 800;
    color: #047857;
    margin: 12px 0 4px;
  }
  .admin-prd-panel p { margin: 0 0 6px; }
  .admin-prd-panel ul {
    margin: 0 0 8px;
    padding-left: 1.2em;
  }
  .admin-prd-panel li { margin: 2px 0; }
  .admin-prd-panel .imp { color: #b91c1c; }
  .admin-prd-panel .prd-table {
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0 10px;
    font-size: 12px;
  }
  .admin-prd-panel .prd-table th,
  .admin-prd-panel .prd-table td {
    border: 1px solid #e5e7eb;
    padding: 5px 8px;
    text-align: left;
  }
  .admin-prd-panel .prd-table th {
    background: #ecfdf5;
    font-weight: 700;
    color: #065f46;
  }
}

.page-header {
  text-align: center;
  margin-bottom: 24px;
  padding: 8px 0 4px;
}
.back-link {
  display: inline-block;
  font-size: 13px;
  color: #1677ff;
  text-decoration: none;
  margin-bottom: 10px;
}
.back-link:hover { text-decoration: underline; }
.page-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
  color: #0f172a;
}
.page-sub {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.page-block {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  padding: 24px 28px 28px;
  margin-bottom: 16px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.045);
}
.page-block.done-block {
  position: relative;
}
.page-block.focus-block {
  border-color: rgba(22, 119, 255, 0.22);
  box-shadow: 0 12px 36px rgba(22, 119, 255, 0.08);
}
.block-head {
  font-size: 16px;
  font-weight: 650;
  color: #0f172a;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.block-head .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1677ff, #3b82f6);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(22, 119, 255, 0.28);
}
.tag-done {
  margin-left: auto;
  font-size: 12px;
  font-weight: 650;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 2px 10px;
}
.tag-new {
  margin-left: auto;
  font-size: 12px;
  font-weight: 650;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 2px 10px;
}
.block-desc {
  font-size: 13px;
  color: #64748b;
  margin: -6px 0 16px;
  line-height: 1.6;
}
.block-desc.tight { margin-top: 0; margin-bottom: 14px; }
.inline-txt {
  line-height: 36px;
  font-size: 14px;
  color: #334155;
}

.section-title {
  font-size: 14px;
  font-weight: 650;
  color: #0f172a;
  margin: 22px 0 10px;
  padding-left: 10px;
  border-left: 3px solid #1677ff;
}

.form-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  min-height: 36px;
}
.form-label {
  width: 128px;
  flex-shrink: 0;
  text-align: right;
  padding-right: 16px;
  font-size: 14px;
  line-height: 36px;
  color: #334155;
}
.form-label.top { line-height: 1.45; padding-top: 10px; }
.form-label .req { color: #ef4444; }
.form-body { flex: 1; min-width: 0; }

.input-text {
  width: 100%;
  max-width: 420px;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  box-sizing: border-box;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input-text:focus {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}
.input-text.short { max-width: 120px; }
.upload-hint { font-size: 12px; color: #94a3b8; margin-top: 6px; line-height: 1.6; }

/* —— 竞猜模板风格上传区 —— */
.am-upload {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 16px 18px;
  background:
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  width: 100%;
  max-width: 680px;
  box-sizing: border-box;
}
.am-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) {
  .am-pair { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .form-label { width: auto; text-align: left; padding-right: 0; margin-bottom: 8px; }
}
.slot-label { margin-bottom: 8px; }
.slot-label .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}
.slot-label .tag.h5 {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.slot-label .tag.pc {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.ph {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(22,119,255,.06), rgba(15,23,42,.04)),
    #e8eef5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: border-color .15s, background .15s, color .15s, transform .15s;
}
.ph:hover {
  border-color: #1677ff;
  color: #1677ff;
  background:
    linear-gradient(135deg, rgba(22,119,255,.1), rgba(59,130,246,.06)),
    #eef4ff;
  transform: translateY(-1px);
}
.ph.tall { height: 128px; }
.ph.tall.hero { height: 148px; }
.ph.mid { height: 96px; }
.ph.btn-ph { height: 96px; border-radius: 10px; max-width: none; }
.ph input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph.btn-ph img { object-fit: contain; background: #fff; padding: 8px; box-sizing: border-box; }
.ph.has-img .ph-txt { display: none; }
.ph .ph-txt {
  position: relative;
  z-index: 1;
  pointer-events: none;
  text-align: center;
  padding: 0 12px;
  line-height: 1.4;
}

.tip {
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}
.tip-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #b45309;
  margin-top: 10px;
  max-width: 680px;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 12px;
  border-radius: 8px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
}
.data-table th,
.data-table td {
  border: 1px solid #eef2f7;
  padding: 12px;
  text-align: left;
}
.data-table th {
  background: #f8fafc;
  font-weight: 650;
  color: #64748b;
}
.data-table td.ops { white-space: nowrap; }
.link-btn {
  color: #1677ff;
  cursor: pointer;
  margin-right: 12px;
  background: none;
  border: none;
  font-size: 13px;
  padding: 0;
}
.link-btn.danger { color: #ef4444; }
.btn-add-row {
  padding: 7px 16px;
  font-size: 13px;
  border: 1px dashed #93c5fd;
  color: #1677ff;
  background: #eff6ff;
  border-radius: 8px;
  cursor: pointer;
}
.btn-add-row:hover { background: #dbeafe; }

.footer-btns {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 14px 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.04);
}
.btn {
  min-width: 96px;
  padding: 9px 24px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: #1677ff; color: #1677ff; }
.btn-primary {
  background: linear-gradient(135deg, #1677ff, #3b82f6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(22, 119, 255, 0.28);
}
.btn-primary:hover {
  color: #fff;
  filter: brightness(1.05);
}
.btn-preview {
  background: #fff;
  color: #1677ff;
  border-color: #93c5fd;
}
.btn-preview:hover {
  background: #eff6ff;
  border-color: #1677ff;
  color: #1677ff;
}

.toast {
  position: fixed;
  left: 50%;
  top: 72px;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 2000;
  max-width: min(90vw, 420px);
  text-align: center;
  line-height: 1.5;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}
.toast.show { opacity: 1; }

/* —— 活动内容 / 活动规则 —— */
.block-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.btn-insert {
  background: linear-gradient(135deg, #1677ff, #3b82f6) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.25);
}
.btn-insert:hover { filter: brightness(1.05); color: #fff !important; }
.block-note {
  font-size: 12px;
  color: #ef4444;
  font-weight: 650;
}
.empty-row td {
  text-align: center;
  color: #94a3b8;
  padding: 28px 10px !important;
}
.thumb {
  width: 56px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  background: #f3f4f6;
  display: block;
}
.thumb-ph {
  width: 56px;
  height: 40px;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 11px;
}
.type-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
  margin-right: 4px;
}
.type-pill.img { background: #ecfdf5; color: #047857; }

.admin-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-modal-mask.show { display: flex; }
.admin-modal {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}
.admin-modal .am-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 700;
  font-size: 15px;
}
.admin-modal .am-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}
.admin-modal .am-bd { padding: 18px 22px 8px; }
.admin-modal .am-ft {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 18px 16px;
  border-top: 1px solid #f1f5f9;
}
.admin-modal.confirm-modal {
  width: min(400px, 100%);
}
.confirm-msg {
  margin: 8px 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
}
.am-row { margin-bottom: 14px; }
.am-row > .am-label { font-weight: 700; margin-bottom: 8px; color: #374151; font-size: 13px; }
.am-row.am-row-inline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.am-row.am-row-inline > .am-label {
  flex: 0 0 auto;
  margin-bottom: 0;
  padding-top: 9px;
  white-space: nowrap;
  line-height: 1.2;
}
.am-row.am-row-inline > .am-field {
  flex: 1;
  min-width: 0;
}
.am-row .req { color: #ef4444; }
.am-radios { display: flex; gap: 20px; align-items: center; }
.am-radios label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.am-field input[type="text"] {
  width: 100%;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  box-sizing: border-box;
}
.am-field input[type="text"]:focus {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}
.am-select {
  width: 100%;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  background: #fff;
  box-sizing: border-box;
}
.am-select:focus {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}
.btn-insert.disabled,
.btn-insert:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}
.thumb-ph.theme-deposit { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #fff; font-weight: 700; }
.thumb-ph.theme-vip { background: linear-gradient(135deg, #fef3c7, #d4a017); color: #7c2d12; font-weight: 700; }
.thumb-ph.theme-match { background: linear-gradient(135deg, #86efac, #16a34a); color: #fff; font-weight: 700; }
.thumb-ph.theme-rebate { background: linear-gradient(135deg, #a5b4fc, #6366f1); color: #fff; font-weight: 700; }
.thumb-ph.theme-wc { background: linear-gradient(135deg, #74c0ff, #1d4ed8); color: #fff; font-weight: 700; }

/* 场馆三级级联 */
.venue-cascade { display: flex; flex-direction: column; gap: 12px; }
.cascade-step {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 10px 12px;
}
.cascade-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
}
.cascade-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.cascade-radios label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  padding: 4px 2px;
}
.cascade-radios label:hover { color: #1677ff; }
.cascade-path {
  font-size: 12px;
  color: #1677ff;
  font-weight: 650;
  margin-top: 2px;
}

.switch-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background .2s;
  flex-shrink: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
  transition: transform .2s;
}
.switch.on {
  background: linear-gradient(135deg, #1677ff, #3b82f6);
}
.switch.on::after {
  transform: translateX(20px);
}
.switch.sm {
  width: 36px;
  height: 20px;
}
.switch.sm::after {
  width: 16px;
  height: 16px;
}
.switch.sm.on::after {
  transform: translateX(16px);
}
.status-cell {
  vertical-align: middle;
  text-align: center;
}
.status-cell .switch {
  display: inline-block;
  vertical-align: middle;
  border: none;
  padding: 0;
  cursor: pointer;
  margin: 0 auto;
}

/* 推广轮播列表：表头与单元格全部居中 */
#promoTable th,
#promoTable td {
  text-align: center;
  vertical-align: middle;
}
#promoTable .thumb,
#promoTable .thumb-ph {
  margin: 0 auto;
}
#promoTable td.ops .link-btn {
  margin-right: 8px;
}
#promoTable td.ops .link-btn:last-child {
  margin-right: 0;
}
.switch-txt {
  font-size: 13px;
  color: #334155;
  font-weight: 650;
}
.am-err { color: #ef4444; font-size: 12px; margin-top: 6px; display: none; }
.am-err.show { display: block; }
.am-hint { font-size: 12px; color: #64748b; margin-top: 4px; line-height: 1.6; }
.am-upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.am-upload-slot .slot-label { font-weight: 700; margin-bottom: 8px; font-size: 13px; }
.am-plus {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 28px;
  cursor: pointer;
  overflow: hidden;
}
.am-plus:hover { border-color: #1677ff; color: #1677ff; }
.am-plus input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.am-plus img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.am-plus.has-img .plus-ico { display: none; }
.slot-wrap {
  position: relative;
}
.slot-clear {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
  padding: 0;
}
.slot-clear:hover { background: #ef4444; }
.slot-clear[hidden] { display: none !important; }

.page-block a { color: #1677ff; }

/* —— 活动进行时间：日期时间范围选择器（对齐竞猜后台） —— */
:root { --dtr-primary: #1677ff; }
.dtr-field { position: relative; max-width: 560px; z-index: 1; }
.dtr-field:has(.dtr-trigger.open) { z-index: 70; }
.dtr-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  width: 100%;
  max-width: 560px;
  padding: 4px 12px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  color: #9ca3af;
  font-size: 13px;
  flex-wrap: wrap;
}
.dtr-trigger:hover,
.dtr-trigger.open { border-color: var(--dtr-primary); }
.dtr-trigger .dtr-ico { flex-shrink: 0; opacity: 0.55; }
.dtr-trigger .dtr-sep { color: #bfbfbf; }
.dtr-trigger .dtr-val { color: #111827; }
.dtr-trigger .dtr-ph { color: #bfbfbf; }
.dtr-panel {
  display: none;
  position: fixed !important;
  left: 0;
  top: 0;
  z-index: 99999 !important;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  overflow: visible;
}
.dtr-panel.show { display: flex; }
.dtr-panel.range { width: min(646px, calc(100vw - 24px)); }
.dtr-main { flex: 1; min-width: 0; padding: 12px; }
.dtr-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.dtr-inputs .pair { display: flex; gap: 6px; min-width: 0; }
.dtr-inputs input {
  height: 28px;
  width: 100%;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 12px;
  box-sizing: border-box;
}
.dtr-inputs input:focus {
  outline: none;
  border-color: var(--dtr-primary);
}
.dtr-inputs .chev { color: #9ca3af; font-size: 14px; }
.dtr-cals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dtr-cal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 13px;
  color: #111827;
}
.dtr-cal-hd .nav { display: flex; gap: 2px; min-width: 52px; }
.dtr-cal-hd .nav.right { justify-content: flex-end; }
.dtr-cal-hd button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #6b7280;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}
.dtr-cal-hd button:hover { background: #f5f5f5; color: #111; }
.dtr-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
  font-size: 12px;
}
.dtr-grid .dow { color: #9ca3af; padding: 4px 0; }
.dtr-grid .day {
  height: 28px;
  line-height: 28px;
  border-radius: 4px;
  cursor: pointer;
  color: #111827;
}
.dtr-grid .day:hover { background: #e6f4ff; }
.dtr-grid .day.other { color: #d1d5db; }
.dtr-grid .day.in-range { background: #e6f4ff; color: var(--dtr-primary); border-radius: 0; }
.dtr-grid .day.selected {
  background: var(--dtr-primary);
  color: #fff;
  border-radius: 50%;
}
.dtr-ft {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}
.dtr-ft .btn-text {
  border: none;
  background: none;
  color: var(--dtr-primary);
  cursor: pointer;
  padding: 0 10px;
  font-size: 13px;
}
.dtr-ft .btn-ok {
  height: 28px;
  padding: 0 14px;
  border-radius: 4px;
  border: 1px solid var(--dtr-primary);
  background: #fff;
  color: var(--dtr-primary);
  font-size: 13px;
  cursor: pointer;
}
.dtr-ft .btn-ok:hover { background: #e6f4ff; }
