/* Popup CSSK — thay alert/confirm trình duyệt + khung form */
.cssk-dlg {
  position: fixed; inset: 0; z-index: 10050;
  display: grid; place-items: center; padding: 1rem;
}
.cssk-dlg[hidden] { display: none !important; }
.cssk-dlg-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 52, 93, .48);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.cssk-dlg-panel {
  position: relative; z-index: 1;
  width: min(440px, 100%);
  padding: 1.25rem 1.3rem 1.15rem;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(255,255,255,.97), rgba(230,246,248,.95));
  box-shadow: 0 24px 52px rgba(8,59,102,.28), inset 0 1px 0 #fff;
  color: var(--ink, #14345d);
  animation: cssk-dlg-in .18s ease;
}
.cssk-dlg-panel.is-shake {
  animation: cssk-dlg-shake .42s cubic-bezier(.36,.07,.19,.97);
}
.cssk-dlg.is-wide .cssk-dlg-panel { width: min(560px, 100%); }
.cssk-dlg.is-form .cssk-dlg-panel { width: min(520px, 100%); text-align: left; }
.cssk-dlg.is-form.is-wide .cssk-dlg-panel { width: min(720px, 100%); }
.cssk-dlg.is-form.is-wide.is-landscape .cssk-dlg-panel {
  width: min(980px, 96vw);
  height: min(820px, 90vh);
  min-height: min(640px, 88vh);
  max-height: 92vh;
  overflow: auto;
  padding: 1rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
}
@media (max-width: 900px) {
  .cssk-dlg.is-form.is-wide.is-landscape .cssk-dlg-panel {
    height: auto;
    min-height: 0;
  }
}
.cssk-dlg.is-form.is-wide.is-landscape .cssk-dlg-form {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cssk-dlg.is-form.is-wide.is-landscape .wiz-pane.is-active,
.cssk-dlg.is-form.is-wide.is-landscape .wiz-pane:not([hidden]) {
  flex: 1 1 auto;
  min-height: 12rem;
  align-content: start;
}
.cssk-dlg.is-form.is-wide.is-landscape .wiz-actions {
  margin-top: auto;
  padding-top: .65rem;
}
.cssk-dlg.is-landscape .dlg-head-row {
  display: flex; align-items: center; gap: .85rem;
  margin: -1rem -1.25rem .9rem;
  padding: 1.05rem 3.1rem 1rem 1.2rem;
  border-radius: 20px 20px 14px 14px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(15, 146, 149, .35), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(10, 126, 201, .4), transparent 50%),
    linear-gradient(118deg, #14345d 0%, #0a5fa8 48%, #0a7ec9 78%, #0f9295 100%);
  box-shadow:
    0 10px 28px rgba(8, 59, 102, .28),
    inset 0 1px 0 rgba(255, 255, 255, .22);
  color: #fff;
}
.cssk-dlg.is-landscape .cssk-dlg-icon {
  margin: 0;
  width: 2.75rem; height: 2.75rem; font-size: 1.2rem; flex: 0 0 auto;
  background: rgba(255, 255, 255, .18) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 6px 14px rgba(0, 0, 0, .12);
}
.cssk-dlg.is-landscape .cssk-dlg-title {
  margin: 0; text-align: left;
  font-size: 1.28rem; font-weight: 800; letter-spacing: .01em;
  color: #fff !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}
.cssk-dlg.is-landscape .dlg-head-text { min-width: 0; flex: 1; }
.cssk-dlg.is-landscape .dlg-head-sub {
  margin: .28rem 0 0; font-size: .78rem; line-height: 1.4;
  color: rgba(255, 255, 255, .82);
  font-weight: 500;
}
.cssk-dlg.is-landscape .dlg-head-person {
  margin: .45rem 0 0; font-size: .86rem; line-height: 1.4;
  padding: .45rem .7rem; border-radius: 11px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cssk-dlg.is-landscape .dlg-head-person strong {
  font-weight: 800; color: #fff;
}
.cssk-dlg.is-landscape .cssk-dlg-x {
  top: .85rem; right: .85rem;
  z-index: 2;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22), 0 0 0 2px rgba(255, 255, 255, .35);
}
.cssk-dlg-form.form-grid { display: grid; gap: .55rem .7rem; }
.cssk-dlg-form.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cssk-dlg-form.form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem .7rem;
}
.cssk-dlg-form .input[readonly] {
  background: rgba(20, 52, 93, .06);
  color: #3a5568;
  cursor: default;
  border-style: dashed;
}
.cssk-dlg-form .fg { display: flex; flex-direction: column; gap: .28rem; min-width: 0; }
.cssk-dlg-form .fg > span { font-size: .78rem; font-weight: 700; color: var(--muted, #5a7484); }
.cssk-dlg-form .fg-2 { grid-column: span 2; }
.cssk-dlg-form .fg-wide { grid-column: 1 / -1; }
/* display:flex ở .fg dễ đè thuộc tính hidden — buộc ẩn khi soft-hide / [hidden] */
.cssk-dlg-form .fg[hidden],
.cssk-dlg-form .fg.is-soft-hide,
.cssk-dlg-form [hidden],
.cssk-dlg-form .is-soft-hide { display: none !important; }
.cssk-dlg-form .form-checks-col {
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: .35rem; padding-bottom: .15rem;
}
.cssk-dlg-form .fg-flags {
  display: flex; flex-direction: column; gap: .35rem; justify-content: flex-end;
  min-width: 0;
}
.cssk-dlg-form .fg-flags-label {
  font-size: .78rem; font-weight: 700; color: var(--muted, #5a7484);
}
.cssk-dlg-form .flag-chips {
  display: flex; flex-wrap: wrap; gap: .45rem; align-items: center;
  min-height: 40px;
}
.cssk-dlg-form .flag-chip {
  position: relative; margin: 0; cursor: pointer; user-select: none;
  display: inline-flex !important; flex-direction: row !important;
  gap: 0; font-size: inherit !important; font-weight: inherit !important; color: inherit !important;
}
.cssk-dlg-form .flag-chip input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.cssk-dlg-form .flag-chip > span {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 36px; min-width: 7.2rem; padding: .3rem .85rem;
  border-radius: 999px; font-size: .82rem; font-weight: 750;
  font-style: normal;
  color: #5a7484;
  background: rgba(255,255,255,.75);
  box-shadow: inset 0 0 0 1px rgba(8,59,102,.14);
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.cssk-dlg-form .flag-chip > span em {
  font-style: normal; font-weight: 750;
}
.cssk-dlg-form .flag-chip > span i {
  font-size: .82rem; width: 1em; text-align: center;
  transition: transform .18s ease, color .18s ease;
}
.cssk-dlg-form .flag-chip:hover > span { transform: translateY(-1px); }
.cssk-dlg-form .flag-chip input:focus-visible + span {
  outline: 2px solid rgba(10,126,201,.45); outline-offset: 2px;
}

/* Nam */
.cssk-dlg-form .flag-chip.is-nam > span {
  color: #0a4f8f;
  background: linear-gradient(180deg, #e7f5fc, #d4eefb);
  box-shadow: inset 0 0 0 1.5px rgba(10,126,201,.45);
}
.cssk-dlg-form .flag-chip.is-nam > span i { color: #0a7ec9; }
/* Nữ */
.cssk-dlg-form .flag-chip.is-nu > span {
  color: #9d174d;
  background: linear-gradient(180deg, #fdf2f8, #fce7f3);
  box-shadow: inset 0 0 0 1.5px rgba(219,39,119,.4);
}
.cssk-dlg-form .flag-chip.is-nu > span i { color: #db2777; }

/* Đảng viên */
.cssk-dlg-form .flag-chip.is-dangvien > span {
  color: #9f1239;
  background: linear-gradient(180deg, #fff1f2, #ffe4e6);
  box-shadow: inset 0 0 0 1.5px rgba(197,31,45,.42);
}
.cssk-dlg-form .flag-chip.is-dangvien > span i { color: #c51f2d; }
/* Quần chúng — không cờ Đảng */
.cssk-dlg-form .flag-chip.is-quanchung > span {
  color: #475569;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  box-shadow: inset 0 0 0 1.5px rgba(71,85,105,.28);
}
.cssk-dlg-form .flag-chip.is-quanchung > span i { color: #64748b; }

/* Wizard bước nhập hồ sơ */
.wiz-steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .4rem; margin: 0 0 .9rem;
}
.wiz-step {
  border: 0; border-radius: 12px; min-height: 44px; padding: .4rem .55rem;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  font: 800 .78rem var(--font, inherit); color: var(--ink, #14345d);
  background: rgba(255,255,255,.55);
  box-shadow: inset 0 0 0 1px rgba(8,59,102,.12);
  cursor: pointer; transition: opacity .15s ease, background .15s ease;
}
.wiz-step span {
  width: 1.35rem; height: 1.35rem; border-radius: 999px;
  display: inline-grid; place-items: center; font-size: .72rem;
  background: rgba(10,126,201,.15); color: #0a7ec9;
}
.wiz-step.is-current {
  background: linear-gradient(180deg, #e8f5fc, #d6eefb);
  box-shadow: inset 0 0 0 1.5px rgba(10,126,201,.45);
  color: #0a4f8f;
}
.wiz-step.is-current span { background: #0a7ec9; color: #fff; }
.wiz-step.is-done { background: rgba(13,155,122,.1); }
.wiz-step.is-done span { background: #0d9b7a; color: #fff; }
.wiz-step.is-locked {
  opacity: .38; cursor: not-allowed; filter: grayscale(.3);
  pointer-events: none;
}
.wiz-step.is-current { cursor: default; }
.wiz-step:disabled.is-locked { pointer-events: none; }
.wiz-actions #btnWizNext:disabled {
  opacity: .45; cursor: not-allowed; filter: grayscale(.2);
}
.wiz-pane { display: grid; gap: .65rem; }
.wiz-pane[hidden] { display: none !important; }
.wiz-hint {
  margin: 0; font-size: .8rem; color: var(--muted, #5a7484); line-height: 1.45;
  display: flex; gap: .45rem; align-items: flex-start;
  padding: .55rem .7rem; border-radius: 12px;
  background: rgba(255,255,255,.45); box-shadow: inset 0 0 0 1px rgba(8,59,102,.08);
}
.wiz-hint i { color: var(--teal, #0f9295); margin-top: .12rem; }
.wiz-live {
  margin: 0; font-size: .8rem; color: #0a4f8f; line-height: 1.4;
  padding: .35rem .15rem 0;
}
.wiz-err {
  margin: .35rem 0 0; font-size: .82rem; font-weight: 700; color: #9f1239;
}
.wiz-actions { margin-top: .85rem; display: flex; flex-wrap: wrap; gap: .45rem; justify-content: flex-end; }

/* —— Tablet / phone rộng —— */
@media (max-width: 900px) {
  .cssk-dlg {
    padding: .45rem;
    align-items: end;
    place-items: end center;
  }
  .cssk-dlg-form.form-grid-3 { grid-template-columns: 1fr 1fr; }
  .cssk-dlg-form .fg-2 { grid-column: 1 / -1; }
  .wiz-steps { grid-template-columns: 1fr 1fr; gap: .35rem; }

  /* Ghi đè max-width inline trên panel */
  .cssk-dlg .cssk-dlg-panel,
  .cssk-dlg.is-wide .cssk-dlg-panel,
  .cssk-dlg.is-form .cssk-dlg-panel,
  .cssk-dlg.is-form.is-wide .cssk-dlg-panel,
  .cssk-dlg.is-form.is-wide.is-landscape .cssk-dlg-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto;
    max-height: min(92dvh, 92vh);
    border-radius: 18px 18px 12px 12px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: .95rem .9rem 1rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  /* Form dài: panel flex + vùng cuộn + nút dính đáy */
  .cssk-dlg.is-form .cssk-dlg-panel {
    display: flex;
    flex-direction: column;
  }
  .cssk-dlg.is-form .dlg-head-row,
  .cssk-dlg.is-form .cssk-dlg-icon,
  .cssk-dlg.is-form .cssk-dlg-title,
  .cssk-dlg.is-form > .cssk-dlg-body,
  .cssk-dlg.is-form > .cssk-dlg-hint,
  .cssk-dlg.is-form .wiz-steps {
    flex: 0 0 auto;
  }
  .cssk-dlg.is-form .cssk-dlg-form {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
  }
  .cssk-dlg.is-form .wiz-pane {
    flex: 1 1 auto;
  }
  .cssk-dlg.is-form .cssk-dlg-actions,
  .cssk-dlg.is-form .wiz-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin-top: auto;
    padding: .65rem 0 max(.35rem, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.97) 28%, rgba(230,246,248,.98));
    flex-wrap: wrap;
    gap: .4rem;
    justify-content: stretch;
  }
  .cssk-dlg.is-form .cssk-dlg-actions .cssk-dlg-btn,
  .cssk-dlg.is-form .cssk-dlg-actions button,
  .cssk-dlg.is-form .wiz-actions .btn,
  .cssk-dlg.is-form .wiz-actions button,
  .cssk-dlg.is-form .wiz-actions .cssk-dlg-btn {
    flex: 1 1 calc(50% - .3rem);
    min-width: 6.5rem;
    justify-content: center;
  }

  .cssk-dlg.is-landscape .dlg-head-row {
    flex: 0 0 auto;
    margin: -.95rem -.9rem .7rem;
    padding: .8rem 2.7rem .7rem .85rem;
    border-radius: 16px 16px 12px 12px;
  }
  .cssk-dlg.is-landscape .cssk-dlg-title { font-size: 1.05rem; }
  .cssk-dlg.is-landscape .dlg-head-sub { font-size: .72rem; }
  .cssk-dlg.is-landscape .dlg-head-person {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    font-size: .8rem;
  }

  .cssk-dlg-actions {
    flex-wrap: wrap;
    gap: .4rem;
  }
  .cssk-dlg:not(.is-form) .cssk-dlg-actions .cssk-dlg-btn {
    flex: 1 1 auto;
    min-width: 7rem;
    justify-content: center;
  }

  .wiz-step {
    min-height: 2.6rem;
    padding: .35rem .4rem;
    font-size: .72rem;
    flex-direction: column;
    gap: .2rem;
  }
  .wiz-step span {
    width: 1.25rem;
    height: 1.25rem;
    font-size: .68rem;
  }
}

/* —— Phone —— */
@media (max-width: 560px) {
  /* Alert / confirm: bottom sheet, không full màn */
  .cssk-dlg:not(.is-form) {
    padding: 0;
    align-items: end;
    place-items: end stretch;
  }
  .cssk-dlg:not(.is-form) .cssk-dlg-panel {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(88dvh, 88vh) !important;
    border-radius: 18px 18px 0 0;
    padding: 1.05rem .95rem max(1rem, env(safe-area-inset-bottom));
  }

  /* Form / wizard: full màn hình */
  .cssk-dlg.is-form {
    padding: 0;
    place-items: stretch;
    align-items: stretch;
  }
  .cssk-dlg.is-form .cssk-dlg-panel,
  .cssk-dlg.is-form.is-wide .cssk-dlg-panel,
  .cssk-dlg.is-form.is-wide.is-landscape .cssk-dlg-panel {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100dvh !important;
    min-height: 100dvh !important;
    border-radius: 0;
    padding: .75rem .8rem 0;
    padding-top: max(.75rem, env(safe-area-inset-top));
  }

  .cssk-dlg-form.form-grid-2,
  .cssk-dlg-form.form-grid-3 { grid-template-columns: 1fr; }

  .cssk-dlg.is-landscape .dlg-head-row {
    margin: calc(-1 * max(.75rem, env(safe-area-inset-top))) -.8rem .65rem;
    padding-top: max(.75rem, env(safe-area-inset-top));
    border-radius: 0;
  }

  .cssk-dlg-x {
    top: max(.55rem, env(safe-area-inset-top));
    right: .55rem;
    width: 2.15rem;
    height: 2.15rem;
    z-index: 5;
  }
  .cssk-dlg.is-landscape .cssk-dlg-x {
    top: max(.55rem, env(safe-area-inset-top));
  }

  /* Wizard: chỉ số bước cho gọn */
  .wiz-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .3rem;
    margin-bottom: .65rem;
  }
  .wiz-step {
    font-size: 0;
    letter-spacing: 0;
    min-height: 2.4rem;
    padding: .35rem .2rem;
    gap: 0;
  }
  .wiz-step span {
    font-size: .78rem;
    width: 1.4rem;
    height: 1.4rem;
  }

  .cssk-dlg-form .input,
  .cssk-dlg-form .select,
  .cssk-dlg-form textarea.input {
    font-size: 16px; /* tránh iOS zoom */
  }

  .cssk-dlg-form .flag-chip > span {
    min-width: 0;
    flex: 1 1 calc(50% - .3rem);
    justify-content: center;
  }
  .cssk-dlg-form .flag-chips {
    width: 100%;
  }

  .cssk-dlg-title {
    font-size: 1.05rem;
    padding-right: 2.2rem;
  }
  .cssk-dlg-body {
    font-size: .88rem;
    margin-bottom: .75rem;
  }

  .dn-detail-row {
    grid-template-columns: 1fr !important;
    gap: .15rem .35rem;
  }
  .dn-xuly-btns .cssk-dlg-btn {
    flex: 1 1 100%;
  }
}
.cssk-dlg-form.form-grid textarea.input { min-height: 64px; resize: vertical; padding-top: .55rem; }
@keyframes cssk-dlg-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes cssk-dlg-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-7px); }
  30% { transform: translateX(7px); }
  45% { transform: translateX(-5px); }
  60% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
  90% { transform: translateX(2px); }
}

.cssk-dlg-x {
  position: absolute; top: .65rem; right: .65rem;
  width: 2rem; height: 2rem; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, #f0717a, #c51f2d 55%, #9f1239);
  color: #fff;
  font-size: 1.25rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(197,31,45,.28);
}
.cssk-dlg-x:hover { filter: brightness(1.06); }

.cssk-dlg-icon {
  width: 3rem; height: 3rem; margin: .1rem auto .7rem;
  border-radius: 999px; display: grid; place-items: center;
  background: linear-gradient(145deg, #e8f4fc, #d5eaf8); color: #0a7ec9; font-size: 1.4rem;
}
.cssk-dlg.is-danger .cssk-dlg-icon {
  background: linear-gradient(145deg, #fde8eb, #f8d5da); color: #c51f2d;
}
.cssk-dlg.is-success .cssk-dlg-icon {
  background: linear-gradient(145deg, #e6f8f3, #d0f0e8); color: #0d9b7a;
}
.cssk-dlg.is-warn .cssk-dlg-icon {
  background: linear-gradient(145deg, #fff6e0, #ffe7a0); color: #92400e;
}
.cssk-dlg.is-form .cssk-dlg-icon { margin-left: 0; }

.cssk-dlg-title {
  margin: 0 0 .45rem; font: 800 1.15rem/1.25 "Lexend", "Be Vietnam Pro", system-ui, sans-serif;
  text-align: center; color: var(--navy, #14345d);
}
.cssk-dlg.is-form .cssk-dlg-title { text-align: left; padding-right: 2rem; }
.cssk-dlg-body {
  margin: 0 0 1rem; font-size: .92rem; line-height: 1.5; color: var(--muted, #5a7484);
  text-align: center; white-space: pre-wrap;
}
.cssk-dlg.is-form .cssk-dlg-body { text-align: left; white-space: normal; }
.cssk-dlg-body.is-html { white-space: normal; }
.cssk-dlg-body .mono {
  display: inline-block; margin-top: .35rem; padding: .35rem .65rem; border-radius: 10px;
  font-family: ui-monospace, Consolas, monospace; font-weight: 800; letter-spacing: .04em;
  background: rgba(214,147,11,.14); color: #7a4e08;
}

.cssk-dlg-actions {
  display: flex; justify-content: center; gap: .55rem; flex-wrap: wrap;
}
.cssk-dlg.is-form .cssk-dlg-actions { justify-content: flex-end; }
.cssk-dlg-btn {
  min-height: 42px; padding: .5rem 1.15rem; border: 0; border-radius: 12px; cursor: pointer;
  font: 800 .86rem "Be Vietnam Pro", system-ui, sans-serif;
  display: inline-flex; align-items: center; gap: .4rem;
}
.cssk-dlg-btn-ok,
.cssk-dlg-btn-next {
  color: #fff;
  background: linear-gradient(180deg, #4eb8ef, #0a7ec9 55%, #0a4f8f);
  box-shadow: 0 10px 20px rgba(10,126,201,.24);
}
.cssk-dlg.is-danger .cssk-dlg-btn-ok {
  background: linear-gradient(180deg, #ef6a74, #c51f2d);
  box-shadow: 0 10px 20px rgba(197,31,45,.25);
}
.cssk-dlg.is-success .cssk-dlg-btn-ok {
  background: linear-gradient(180deg, #28c9b8, #0f9a8f 45%, #0a6f78);
}
.cssk-dlg-btn-save {
  color: #fff;
  background: linear-gradient(180deg, #2ec4a8, #0d9b7a 50%, #0a6f68);
  box-shadow: 0 10px 20px rgba(13,155,122,.28);
}
.cssk-dlg-btn-back {
  color: #0a4f8f;
  background: linear-gradient(180deg, #fff, #e8f3fb);
  box-shadow: inset 0 0 0 1px rgba(10,126,201,.28);
}
.cssk-dlg-btn-cancel {
  color: var(--navy, #14345d);
  background: linear-gradient(180deg, #fff, #eef7fd);
  box-shadow: inset 0 0 0 1px rgba(8,118,201,.16);
}
.cssk-dlg-btn-danger {
  color: #fff;
  background: linear-gradient(180deg, #f0717a, #c51f2d 55%, #9f1239);
  box-shadow: 0 10px 20px rgba(197,31,45,.26);
}
.cssk-dlg-btn:disabled { opacity: .55; cursor: not-allowed; }

body.cssk-dlg-open { overflow: hidden; }

.cssk-dlg-form { display: grid; gap: .7rem; }
.cssk-dlg-form label {
  display: grid; gap: .28rem; font-size: .78rem; font-weight: 700; color: var(--muted, #5a7484);
}
.cssk-dlg-form .input,
.cssk-dlg-form .select { width: 100%; }
.cssk-dlg-form .check-line {
  display: flex !important; flex-direction: row !important; align-items: center;
  gap: .5rem; font-size: .88rem !important; color: var(--ink, #14345d) !important; font-weight: 700;
}
.cssk-dlg-hint {
  margin: 0; font-size: .8rem; color: var(--muted, #5a7484); line-height: 1.4;
  display: flex; gap: .4rem; align-items: flex-start;
}
.cssk-dlg-hint i { color: var(--teal, #0f9295); margin-top: .12rem; }
.cssk-dlg-form .form-checks {
  display: flex; flex-wrap: wrap; gap: .85rem 1.4rem; align-items: center;
  padding: .15rem 0 .1rem;
}
.cssk-dlg-form .form-more {
  border: 1px solid rgba(20, 52, 93, .12);
  border-radius: 12px;
  padding: .55rem .85rem .7rem;
  background: rgba(255,255,255,.35);
}
.cssk-dlg-form .form-more > summary {
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink, #14345d);
  list-style: none;
}
.cssk-dlg-form .form-more > summary::-webkit-details-marker { display: none; }
.cssk-dlg-form .form-more > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: .35rem;
  color: var(--teal, #0f9295);
  transition: transform .15s ease;
}
.cssk-dlg-form .form-more[open] > summary::before { transform: rotate(90deg); }
