.kh-kym-editor-wrap,
.kh-kym-bibliography{box-sizing:border-box}
.kh-kym-editor-wrap{border:1px solid #dcdcde;background:#fff;padding:16px;margin:12px 0}
.kh-kym-editor-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;font-size:13px}
.kh-kym-status{font-weight:600}
.kh-kym-status-loading{color:#646970}
.kh-kym-status-ok{color:#087f23}
.kh-kym-status-error{color:#b32d2e}
.kh-kym-title{margin:0 0 14px;font-size:1.35em}
.kh-kym-list{margin:0;padding-left:2.2em}
.kh-kym-list li{margin:0 0 10px;padding-left:.2em;line-height:1.55}
.kh-kym-number{font-weight:600}
.kh-kym-empty{padding:14px;border:1px dashed #c3c4c7;background:#f6f7f7;display:flex;gap:10px;flex-direction:column}
.kh-kym-empty span{color:#646970}
.kh-kym-warning{margin-top:14px;padding:10px 12px;border-left:4px solid #dba617;background:#fff8e5;color:#4b3b00;font-size:13px}
.kh-kym-warning-error{border-left-color:#b32d2e;background:#fcf0f1;color:#8a2424}
.kh-kym-editor-preview{min-height:42px}
.kh-kym-error-list{margin:8px 0 0 18px;padding-left:18px}
.kh-kym-error-list li{margin:4px 0;line-height:1.45}
.kh-kym-bibliography{margin-top:1.5em}
.kh-kym-bibliography .kh-kym-list{padding-left:2.2em}
/* Vancouver satırında [n] HTML içinde yazılır; OL sayacı çift numara üretmemeli. */
.kh-kym-bibliography ol.kh-kym-list{list-style:none;padding-left:0!important}
.kh-kym-bibliography ol.kh-kym-list>li{margin-left:0;padding-left:0}

/* KYM v2.0.20 — yazdırma, çift numara ve düğme durumları */
.kh-kym-print-controls{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.kh-kym-print-button{border:1px solid #3858e9;background:#fff;color:#3858e9;padding:7px 11px;border-radius:4px;cursor:pointer;font-weight:600}
.kh-kym-print-icon{display:inline-block;color:#3858e9;font-size:16px;line-height:1;margin-right:4px}
.kh-kym-print-button:hover .kh-kym-print-icon,.kh-kym-print-button:focus .kh-kym-print-icon,.kh-kym-print-button:focus-visible .kh-kym-print-icon{color:#fff}
.kh-kym-print-button:hover,.kh-kym-print-button:focus,.kh-kym-print-button:focus-visible{background:#3A3A3A!important;border-color:#3A3A3A!important;color:#fff!important;box-shadow:none!important;outline-color:#3A3A3A!important}
.kh-kym-bib-number{font-weight:600;text-decoration:none}
.kh-kym-backlinks{margin-left:6px;white-space:nowrap}
.kh-kym-backlink{text-decoration:none;font-size:.9em}
.kh-kym-admin-content{display:none}
@media print{
  .kh-kym-print-controls{display:none!important}
  body.kh-kym-print-user .kh-kym-admin-content{display:none!important}
  body.kh-kym-print-admin .kh-kym-public-content{display:none!important}
  .kh-kym-print-admin .kh-kym-admin-content{display:block!important}
}
@media print{
  .kh-kym-print-scope.kh-kym-print-user .kh-kym-admin-content{display:none!important}
  .kh-kym-print-scope.kh-kym-print-admin .kh-kym-public-content{display:none!important}
  .kh-kym-print-scope.kh-kym-print-admin .kh-kym-admin-content{display:block!important}
}

.kh-kym-apa-list{list-style:none;padding-left:0!important}
.kh-kym-apa-list li{padding-left:0}
.kh-kym-apa-list .kh-kym-citation{text-indent:-2em;padding-left:2em;display:block}
.kh-kym-style-selector{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-weight:600}
.kh-kym-style-selector select{min-width:120px}

.kh-kym-style-help{margin:6px 0 12px;font-size:12px;line-height:1.5;color:#646970}


/* KYM v2.0.20 — normal düğme rengini koru; hover/focus koyu gri */
.kh-kym-source-panel .button:hover,
.kh-kym-source-panel .button:focus,
.kh-kym-source-panel .button:focus-visible,
.kh-kym-source-panel .button-primary:hover,
.kh-kym-source-panel .button-primary:focus,
.kh-kym-source-panel .button-primary:focus-visible,
.kh-kym-library-select-button:hover,
.kh-kym-library-select-button:focus,
.kh-kym-library-select-button:focus-visible {
  background: #3A3A3A !important;
  border-color: #3A3A3A !important;
  color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
  outline-color: #3A3A3A !important;
}
.kh-kym-source-panel .button:disabled,
.kh-kym-source-panel .button-primary:disabled { opacity:.5; cursor:not-allowed; }
.kh-kym-library-select-button { margin-left:8px !important; }

/* v2.0.23 — APA/Vancouver seçim alanını daha görünür yap. */
.kh-kym-editor-toolbar{padding:12px 14px;background:#f0f6fc;border:1px solid #8cace0;border-left:4px solid #3858e9;border-radius:5px;flex-wrap:wrap}
.kh-kym-style-selector{padding:6px 9px;background:#fff;border:1px solid #8cace0;border-radius:4px;margin-left:auto}
.kh-kym-style-selector select{min-width:140px;border-color:#3858e9;font-weight:600}
.kh-kym-style-help{padding:8px 11px;border-left:3px solid #3858e9;background:#f6f7f7;color:#3c434a}
@media print{.kh-kym-print-icon{display:none!important}}

/* KYM v2.0.23 — Kapat turuncu, standart hover/focus koyu gri. */
.kh-kym-source-panel .kh-kym-source-close{background:#FF5400!important;border-color:#FF5400!important;color:#fff!important}
.kh-kym-source-panel .kh-kym-source-close:hover,.kh-kym-source-panel .kh-kym-source-close:focus,.kh-kym-source-panel .kh-kym-source-close:focus-visible{background:#3A3A3A!important;border-color:#3A3A3A!important;color:#fff!important;box-shadow:none!important}
