dialog.ck-dialog {
  --ck-ink: #123d3b;
  --ck-muted: #546966;
  --ck-line: #d9dfd8;
  --ck-paper: #fffef9;
  --ck-gold: #be8841;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: min(590px, calc(100vw - 32px));
  max-width: none;
  max-height: min(86dvh, 860px);
  overflow: auto;
  color: var(--ck-ink);
  background: var(--ck-paper);
  border: 1px solid rgba(18, 61, 59, .17);
  border-radius: 18px;
  box-shadow: 0 22px 90px #071d2440;
}
dialog.ck-dialog::backdrop { background: rgb(7 30 32 / 60%); }
.ck-panel { color: var(--ck-ink); text-align: start; font: 400 15px/1.6 "DM Sans", "Segoe UI", "Microsoft JhengHei", "Microsoft YaHei", sans-serif; }
.ck-panel * { box-sizing: border-box; }
.ck-panel h2, .ck-panel h3, .ck-panel p, .ck-panel dl, .ck-panel dd, .ck-panel ul { margin: 0; }
.ck-panel button, .ck-panel input, .ck-panel select, .ck-panel textarea { font: inherit; }
.ck-panel button { cursor: pointer; }
.ck-panel button:disabled { opacity: .6; cursor: wait; }
.ck-panel :is(button, input, select, textarea, summary):focus-visible { outline: 3px solid #b78339; outline-offset: 3px; }
.ck-panel .ck-header { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 22px 26px 13px; }
.ck-panel .ck-title { font-size: clamp(23px, 4vw, 29px); font-weight: 650; line-height: 1.25; letter-spacing: -.025em; color: var(--ck-ink); }
.ck-panel .ck-close { display: grid; place-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ck-line); background: transparent; color: var(--ck-ink); font: 300 27px/1 sans-serif; }
.ck-tabs { display: flex; gap: 22px; padding: 0 26px; border-bottom: 1px solid var(--ck-line); }
.ck-panel .ck-tab { margin-bottom: -1px; padding: 10px 0 11px; color: var(--ck-muted); border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; font-weight: 600; }
.ck-panel .ck-tab[aria-current="page"] { border-bottom-color: var(--ck-gold); color: var(--ck-ink); }
.ck-main { padding: 20px 26px 26px; }
.ck-view, .ck-form, .ck-recover { display: grid; gap: 15px; }
.ck-panel .ck-heading, .ck-empty h3 { font-size: 18px; font-weight: 650; line-height: 1.4; color: var(--ck-ink); }
.ck-panel .ck-hint, .ck-empty p { color: var(--ck-muted); font-size: 14px; line-height: 1.6; }
.ck-empty { display: grid; gap: 12px; justify-items: start; padding: 14px 0; }
.ck-panel .ck-course-list { padding: 0 0 10px; list-style: none; border-bottom: 1px solid var(--ck-line); }
.ck-course-row, .ck-record, .ck-submit { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ck-course-row { padding: 7px 0; }
.ck-course-name { display: grid; }
.ck-course-name b { font-size: 17px; line-height: 1.35; }
.ck-course-name span { color: var(--ck-muted); font-size: 13px; }
.ck-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ck-field { display: grid; gap: 5px; min-width: 0; text-align: start; }
.ck-field > span, .ck-panel .ck-quote-label { color: var(--ck-ink); font-size: 13px; font-weight: 600; }
.ck-panel :is(input, select, textarea) {
  box-sizing: border-box; display: block; height: auto; min-height: 43px; min-width: 0; width: 100%;
  margin: 0; padding: 9px 11px; border: 1px solid #abbcb6; border-radius: 7px; box-shadow: none;
  background: #fff; color: #173e3c; line-height: 1.45;
}
.ck-panel textarea { resize: vertical; }
.ck-panel :is(input, textarea)::placeholder { color: #697b77; }
.ck-panel .ck-primary, .ck-panel .ck-secondary, .ck-panel .ck-link {
  display: inline-flex; align-items: center; justify-content: center; justify-self: start; min-height: 41px;
  padding: 8px 16px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; line-height: 1.4; font-weight: 650;
}
.ck-panel .ck-primary { color: #fff; background: var(--ck-ink); }
.ck-panel .ck-secondary { color: var(--ck-ink); border-color: #a9bab1; background: transparent; }
.ck-panel .ck-link { padding: 6px 2px; text-decoration: underline; text-underline-offset: .22em; background: transparent; color: var(--ck-muted); }
.ck-panel .ck-primary:hover { background: #1c5652; }
.ck-panel .ck-secondary:hover, .ck-panel .ck-close:hover { background: #edf0e9; }
.ck-submit { flex-wrap: wrap; border-top: 1px solid var(--ck-line); padding-top: 15px; }
.ck-submit p { color: var(--ck-muted); font-size: 13px; }
.ck-notice:empty { display: none; }
.ck-panel .ck-notice { color: var(--ck-muted); font-size: 14px; }
.ck-panel .ck-notice.ck-error, .ck-panel .ck-alert { color: #844122; }
.ck-record { border-bottom: 1px solid var(--ck-line); padding-bottom: 12px; }
.ck-record .ck-ref { font-size: 14px; overflow-wrap: anywhere; }
.ck-recover, .ck-save, .ck-quote { padding: 15px; background: #f3f4ec; border-radius: 9px; }
.ck-recover { gap: 10px; }
.ck-receipt-heading, .ck-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.ck-status { padding: 3px 9px; border: 1px solid #cdbb8e; border-radius: 999px; background: #f7f1df; color: #6e501d; font-size: 12px; font-weight: 650; }
.ck-facts { display: grid; gap: 0; }
.ck-facts > div { display: grid; grid-template-columns: minmax(84px, 29%) 1fr; gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--ck-line); }
.ck-facts dt { color: var(--ck-muted); font-size: 13px; }
.ck-facts dd { font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.ck-quote { display: grid; gap: 8px; }
.ck-price { font-size: 25px; font-weight: 650; line-height: 1.3; }
.ck-quote-msg { white-space: pre-wrap; overflow-wrap: anywhere; }
.ck-payment { display: grid; gap: 8px; }
.ck-payment a.ck-primary { text-decoration: none; }
.ck-payment a:focus-visible { outline: 3px solid #b78339; outline-offset: 3px; }
.ck-save summary { cursor: pointer; font-weight: 650; }
.ck-save[open] > :not(summary) { margin-top: 8px; }
.ck-save input { font: 13px/1.5 ui-monospace, Consolas, monospace; }
.ck-actions { justify-content: flex-start; }
@media (max-width: 490px) {
  dialog.ck-dialog { width: calc(100vw - 20px); max-height: 92dvh; border-radius: 13px; }
  .ck-panel .ck-header { padding: 16px 17px 8px; }
  .ck-tabs { padding: 0 17px; }
  .ck-main { padding: 15px 17px 19px; }
  .ck-columns { grid-template-columns: 1fr; }
  .ck-submit { align-items: stretch; flex-direction: column; }
  .ck-panel :is(input, select, textarea) { font-size: 16px; }
}
