/* V26 | İşbitiren accessible cursor/focus polish.
   VISUAL ONLY. Does not modify form values, requests, layout or security.
   Chrome/Windows can hide the native hardware pointer while typing;
   a small non-interactive I-beam is optionally drawn over editable fields
   on fine-pointer devices by visible-cursor-v26.js. */

/* Reliable baseline even if JS is unavailable. */
@media (hover: hover) and (pointer: fine) {
  html.public-site :is(input, textarea, select, button, a[href]),
  body.panel :is(input, textarea, select, button, a[href]) { cursor: revert; }

  html.public-site :is(input:not([type]), input:is([type="text"],[type="search"],[type="email"],[type="tel"],[type="url"],[type="password"],[type="number"]), textarea, [contenteditable="true"]):not(:disabled):not([readonly]),
  body.panel :is(input:not([type]), input:is([type="text"],[type="search"],[type="email"],[type="tel"],[type="url"],[type="password"],[type="number"]), textarea, [contenteditable="true"]):not(:disabled):not([readonly]) {
    cursor: text !important;
  }
  html.public-site :is(a[href], button:not(:disabled), select:not(:disabled), summary, input:is([type="checkbox"],[type="radio"],[type="file"],[type="submit"],[type="button"]):not(:disabled), label:has(input:is([type="checkbox"],[type="radio"]))),
  body.panel :is(a[href], button:not(:disabled), select:not(:disabled), summary, input:is([type="checkbox"],[type="radio"],[type="file"],[type="submit"],[type="button"]):not(:disabled), label:has(input:is([type="checkbox"],[type="radio"]))) {
    cursor: pointer !important;
  }
  :is(html.public-site, body.panel) :is(input, select, textarea, button):disabled,
  body.panel.preview-panel :is(input, select, textarea, button):disabled {
    cursor: not-allowed !important;
  }
  /* Hide the OS text cursor only WHEN the visual replacement is running. */
  html.public-site :is(input, textarea, [contenteditable="true"]).isb-v26-cursor-active:not(:disabled):not([readonly]):hover,
  body.panel :is(input, textarea, [contenteditable="true"]).isb-v26-cursor-active:not(:disabled):not([readonly]):hover {
    cursor: none !important;
  }
}

/* Legible insertion caret while actively editing, irrespective of mouse hover. */
html.public-site :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), textarea, [contenteditable="true"]) {
  caret-color: #75501f !important;
}
body.panel :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), textarea, [contenteditable="true"]) {
  caret-color: #f5c675 !important;
}
html.public-site :is(input,textarea,select):not(:disabled):focus,
html.public-site #site-assistant :is(input,textarea):focus {
  border-color: #a8783a !important;
  outline: 2px solid #c49a5c !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(196,154,92,.16);
}
body.panel:not(.preview-panel) :is(input,textarea,select):not(:disabled):focus {
  border-color: #ecc485 !important;
  outline: 2px solid #e5b870 !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(228,191,139,.16);
}
:is(html.public-site, body.panel) :is(button,a[href],summary,input[type="checkbox"],input[type="radio"]):focus-visible {
  outline: 2px solid #c49a5c !important;
  outline-offset: 3px;
}
/* Color contrast without moving any controls. */
@media (hover: hover) {
  html.public-site :is(input, textarea, select):not(:disabled):hover:not(:focus) { border-color: #a58e66; }
  body.panel :is(input, textarea, select):not(:disabled):hover:not(:focus) { border-color: #bba176; }
}
/* Read-only demo cannot offer a text caret or accept edits. */
body.panel.preview-panel :is(input, textarea, select):disabled { opacity: .82; }
body.panel.preview-panel :is(input, textarea, select):disabled:hover { border-color: #b9a47d !important; }

/* Visual mouse I-beam. The HTML element is never focusable or interactive. */
.isb-v26-ibeam {
  position: fixed;
  width: 14px;
  height: 23px;
  left: 0; top: 0;
  transform: translate3d(-100px,-100px,0);
  pointer-events: none !important;
  touch-action: none;
  z-index: 2147483600;
  visibility: hidden;
  opacity: 0;
  contain: layout style paint;
}
.isb-v26-ibeam.is-visible { visibility: visible; opacity: 1; }
.isb-v26-ibeam::before {
  content: "";
  position: absolute;
  top: 2px; left: 6px;
  height: 19px; width: 2px;
  border-radius: 1px;
  background: #101820;
  box-shadow: -1px 0 0 rgba(255,255,255,.96), 1px 0 0 rgba(255,255,255,.96);
}
.isb-v26-ibeam::after {
  content: "";
  position: absolute;
  left: 3px; top: 2px;
  width: 8px; height: 17px;
  border-top: 2px solid #101820;
  border-bottom: 2px solid #101820;
  filter: drop-shadow(0 1px 0 white);
}
/* Dark backgrounds need a light mouse indicator. */
body.panel .isb-v26-ibeam::before { background: #fff; box-shadow: -1px 0 0 #13191f, 1px 0 0 #13191f; }
body.panel .isb-v26-ibeam::after { border-color: #fff; filter: drop-shadow(0 1px 0 #13191f); }

@media (hover: none), (pointer: coarse), print {
  .isb-v26-ibeam { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .isb-v26-ibeam { transition: none !important; }
}
