.fuh-highlight{background:var(--fuh-highlight-color)!important;color:inherit!important;cursor:pointer;border-radius:2px;padding:0 .02em;box-decoration-break:clone;-webkit-box-decoration-break:clone}.fuh-highlight:hover{outline:2px solid rgba(3,72,126,.45)}.fuh-selection-menu{position:absolute;z-index:999999;display:flex;align-items:center;gap:8px;transform:translateX(-50%);padding:8px 10px;background:#03487e;color:#fff;border-radius:8px;box-shadow:0 6px 24px rgba(0,0,0,.22);font:600 13px/1.2 system-ui,sans-serif}.fuh-selection-menu button{width:24px;height:24px;border:2px solid #fff;border-radius:50%;padding:0;cursor:pointer}.fuh-dashboard{border:var(--fuh-widget-border-width,2px) solid var(--fuh-widget-border-color,#03487e);border-radius:var(--fuh-widget-border-radius,8px);overflow:hidden;background:transparent}.fuh-dashboard,.fuh-dashboard *{box-sizing:border-box}.fuh-dashboard-panel{padding:10px;background:transparent!important}.fuh-dashboard-panel:hover{background:transparent!important}.fuh-dashboard-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 10px}.fuh-dashboard-controls label{display:grid;gap:4px;font-size:.9em;background:transparent!important}.fuh-dashboard-controls label:hover{background:transparent!important}.fuh-dashboard-controls select{width:100%;min-height:38px;border:1px solid #03487e;border-radius:8px;background:#fff;color:inherit;padding:6px 32px 6px 8px}.fuh-dashboard-list{height:var(--fuh-list-height,360px);overflow-y:auto;overflow-x:hidden;margin:0;padding:0;list-style:none;background:transparent!important}.fuh-dashboard-list li{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:start;padding:10px 6px;border-bottom:1px solid #e2e8f0;background:transparent!important}.fuh-dashboard-list li:hover{background:rgba(37,153,238,.08)!important}.fuh-dashboard-item-main{min-width:0;background:transparent!important}.fuh-dashboard-list a{display:block;color:#03487e;text-decoration:none;background:transparent!important}.fuh-dashboard-list a:hover,.fuh-dashboard-list a:focus{color:#2599ee;text-decoration:underline;background:transparent!important}.fuh-dashboard-meta{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin-top:5px;font-size:.82em;opacity:.82;background:transparent!important}.fuh-category-badge{font-weight:600}.fuh-colour-meta{display:inline-flex;align-items:center;gap:5px}.fuh-colour-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--fuh-dot-color);border:1px solid rgba(0,0,0,.18);vertical-align:middle}.fuh-colour-select{max-width:150px;min-height:28px;border:1px solid rgba(3,72,126,.45);border-radius:6px;background:#fff;color:inherit;padding:2px 24px 2px 7px;font:inherit;cursor:pointer}.fuh-colour-select:hover,.fuh-colour-select:focus{border-color:#2599ee;outline:none}.fuh-dashboard-list li:has(.fuh-colour-select:focus){background:rgba(37,153,238,.08)!important}.fuh-dashboard-list button{border:0;background:transparent!important;color:#b91c1c;font-size:22px;line-height:1;cursor:pointer}.fuh-dashboard-list button:hover,.fuh-dashboard-list button:focus{background:rgba(185,28,28,.08)!important;color:#7f1d1d;border-radius:4px}.fuh-dashboard-empty{margin:0}.fuh-dashboard-empty:not([hidden]){height:var(--fuh-list-height,360px);display:flex;align-items:center;justify-content:center;text-align:center;padding:16px}.fuh-pulse{animation:fuhPulse .7s ease-in-out 2}@keyframes fuhPulse{50%{outline:4px solid #2599ee;outline-offset:3px}}.fuh-login-message{padding:14px;border:2px solid #03487e;border-radius:8px}@media(max-width:600px){.fuh-dashboard-controls{grid-template-columns:1fr}.fuh-dashboard-panel{padding:8px}}

.fuh-note-wrap{margin-top:8px}.fuh-note-preview{margin:0 0 5px;padding:7px 9px;border-left:3px solid #2599ee;border-radius:0 6px 6px 0;background:rgba(37,153,238,.06);font-size:.9em;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.fuh-note-toggle,.fuh-note-save,.fuh-note-cancel{font-size:.84em!important;line-height:1.2!important;border-radius:6px!important;padding:5px 8px!important}.fuh-note-toggle{color:#03487e!important;background:rgba(37,153,238,.08)!important}.fuh-note-toggle:hover,.fuh-note-toggle:focus{background:rgba(37,153,238,.16)!important;color:#03487e!important}.fuh-note-editor{margin-top:6px}.fuh-note-textarea{display:block;width:100%;min-height:76px;max-height:130px;resize:vertical;border:1px solid rgba(3,72,126,.45);border-radius:8px;padding:8px;font:inherit;line-height:1.35;background:#fff}.fuh-note-textarea:focus{border-color:#2599ee;outline:2px solid rgba(37,153,238,.18)}.fuh-note-actions{display:flex;align-items:center;gap:6px;margin-top:6px}.fuh-note-save{background:transparent!important;color:#03487e!important;border:1px solid #03487e!important}.fuh-note-save:hover,.fuh-note-save:focus{background:#2599ee!important;color:#fff!important}.fuh-note-cancel{background:transparent!important;color:#03487e!important;border:1px solid #03487e!important}.fuh-note-cancel:hover,.fuh-note-cancel:focus{background:#2599ee!important;color:#fff!important;border-color:#2599ee!important}.fuh-note-counter{margin-left:auto;font-size:.78em;opacity:.7}

/* v1.5.1: keep the note-save action readable even when a theme applies global button styles. */
.fuh-widget button.fuh-note-save,
.fuh-widget input[type="button"].fuh-note-save,
.fuh-widget input[type="submit"].fuh-note-save {
  background-color:transparent!important;
  background-image:none!important;
  border:1px solid #03487e!important;
  color:#03487e!important;
  -webkit-text-fill-color:#03487e!important;
  opacity:1!important;
  text-shadow:none!important;
  box-shadow:none!important;
}
.fuh-widget button.fuh-note-save:hover,
.fuh-widget button.fuh-note-save:focus,
.fuh-widget input[type="button"].fuh-note-save:hover,
.fuh-widget input[type="button"].fuh-note-save:focus,
.fuh-widget input[type="submit"].fuh-note-save:hover,
.fuh-widget input[type="submit"].fuh-note-save:focus {
  background-color:#2599ee!important;
  border-color:#2599ee!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* v1.5.2: consistent accent-blue hover/focus state for Add note and Edit note. */
.fuh-widget button.fuh-note-toggle:hover,
.fuh-widget button.fuh-note-toggle:focus,
.fuh-dashboard button.fuh-note-toggle:hover,
.fuh-dashboard button.fuh-note-toggle:focus {
  background-color:#2599ee!important;
  background-image:none!important;
  border-color:#2599ee!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
  text-decoration:none!important;
}

/* v1.5.3: keep Save note hover/focus visually consistent with Add/Edit note. */
.fuh-widget button.fuh-note-save:hover,
.fuh-widget button.fuh-note-save:focus-visible,
.fuh-dashboard button.fuh-note-save:hover,
.fuh-dashboard button.fuh-note-save:focus-visible {
  background-color:#2599ee!important;
  background-image:none!important;
  border-color:#2599ee!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
  text-decoration:none!important;
}


/* v1.5.4: neutral default note actions; shared accent hover/focus. */
.fuh-widget button.fuh-note-cancel,
.fuh-dashboard button.fuh-note-cancel {
  background-color:transparent!important;
  background-image:none!important;
  border:1px solid #03487e!important;
  color:#03487e!important;
  -webkit-text-fill-color:#03487e!important;
  opacity:1!important;
  box-shadow:none!important;
}
.fuh-widget button.fuh-note-cancel:hover,
.fuh-widget button.fuh-note-cancel:focus-visible,
.fuh-dashboard button.fuh-note-cancel:hover,
.fuh-dashboard button.fuh-note-cancel:focus-visible {
  background-color:#2599ee!important;
  border-color:#2599ee!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* v1.5.5: contextual article-page actions and note editor. */
.fuh-highlight-actions,
.fuh-article-note-popover{
  position:fixed;
  z-index:1000000;
  box-sizing:border-box;
  font:500 14px/1.35 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#03487e;
  background:#fff;
  border:2px solid #03487e;
  border-radius:8px;
  box-shadow:0 8px 28px rgba(0,0,0,.22);
}
.fuh-highlight-actions{display:flex;gap:6px;padding:7px}
.fuh-highlight-actions button,
.fuh-article-note-popover button{
  appearance:none;
  border:1px solid #03487e!important;
  border-radius:6px!important;
  background:#fff!important;
  color:#03487e!important;
  -webkit-text-fill-color:#03487e!important;
  padding:6px 9px!important;
  font:600 13px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  cursor:pointer;
  box-shadow:none!important;
  text-transform:none!important;
}
.fuh-highlight-actions button:hover,
.fuh-highlight-actions button:focus-visible,
.fuh-article-note-popover button:hover,
.fuh-article-note-popover button:focus-visible{
  background:#2599ee!important;
  border-color:#2599ee!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  outline:none;
}
.fuh-highlight-actions .fuh-highlight-action-delete:hover,
.fuh-highlight-actions .fuh-highlight-action-delete:focus-visible,
.fuh-article-note-delete:hover,
.fuh-article-note-delete:focus-visible{background:#b91c1c!important;border-color:#b91c1c!important}
.fuh-article-note-popover{width:min(340px,calc(100vw - 20px));padding:10px}
.fuh-article-note-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.fuh-article-note-header strong{color:#03487e;font-size:14px}
.fuh-article-note-popover .fuh-article-note-close{border:0!important;padding:0!important;width:26px;height:26px;font-size:20px!important;line-height:1!important}
.fuh-article-note-textarea{display:block;width:100%;min-height:96px;max-height:180px;resize:vertical;border:1px solid rgba(3,72,126,.5);border-radius:8px;padding:8px;background:#fff;color:#1f2937;font:inherit;line-height:1.4}
.fuh-article-note-textarea:focus{border-color:#2599ee;outline:2px solid rgba(37,153,238,.2)}
.fuh-article-note-actions{display:flex;align-items:center;gap:6px;margin-top:8px}
.fuh-article-note-counter{margin-left:auto;font-size:11px;color:#475569}

.fuh-copy-notice{
  position:fixed;
  left:50%;
  bottom:24px;
  z-index:2147483647;
  transform:translate(-50%,12px);
  max-width:min(420px,calc(100vw - 32px));
  padding:9px 14px;
  border:1px solid #03487e;
  border-radius:8px;
  background:#fff;
  color:#03487e;
  font:600 13px/1.35 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
}
.fuh-copy-notice.is-visible{opacity:1;visibility:visible;transform:translate(-50%,0)}


/* v1.6.0: optional user-specific watermarking. */
/* v1.6.3: Safari-safe watermark rendering. The article watermark is painted
   behind selectable content and is no longer inserted as a DOM overlay. */
.fuh-watermark-host{
  position:relative!important;
  isolation:isolate;
}
.fuh-watermark-host::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none!important;
  background-image:var(--fuh-watermark-image,none);
  background-repeat:repeat;
  background-position:0 0;
  overflow:hidden;
}
.fuh-watermark-sitewide::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:2147482000;
  pointer-events:none!important;
  background-image:var(--fuh-watermark-image,none);
  background-repeat:repeat;
  background-position:0 0;
}
.fuh-selection-menu,
.fuh-highlight-actions,
.fuh-article-note-popover,
.fuh-copy-notice{z-index:2147483647}
@media print{
  .fuh-watermark-host::before,
  .fuh-watermark-sitewide::before{display:none!important}
}


/* v1.6.2: administrator-configurable dashboard outer padding. */
.fuh-dashboard{
  padding:var(--fuh-widget-padding-top,14px) var(--fuh-widget-padding-right,16px) var(--fuh-widget-padding-bottom,10px) var(--fuh-widget-padding-left,16px);
}
.fuh-dashboard-panel{padding:0!important}
.fuh-dashboard--borderless{border:0!important;border-radius:0!important}


/* v1.6.4: right-click blocking was removed completely. Explicitly keep enabled
   article roots text-selectable in Safari and other WebKit browsers. */
.fuh-selectable-root,
.fuh-selectable-root *{
  -webkit-user-select:text!important;
  user-select:text!important;
}
.fuh-selectable-root input,
.fuh-selectable-root textarea,
.fuh-selectable-root button,
.fuh-selectable-root select,
.fuh-selectable-root option,
.fuh-selectable-root [contenteditable="true"]{
  -webkit-user-select:auto!important;
  user-select:auto!important;
}
.fuh-selection-menu,
.fuh-selection-menu *{
  -webkit-user-select:none!important;
  user-select:none!important;
}


/* v1.6.5: make colour activation reliable on touch browsers, especially iOS Safari. */
.fuh-selection-menu{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.fuh-selection-menu button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}


/* v1.6.6: touch-safe article note controls and mobile Safari note editor. */
.fuh-highlight-actions,
.fuh-highlight-actions button,
.fuh-article-note-popover,
.fuh-article-note-popover button{
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
@media (max-width:767px), (pointer:coarse){
  .fuh-article-note-popover.is-mobile-note-popover{
    position:fixed!important;
    left:10px!important;
    right:10px!important;
    top:auto!important;
    bottom:calc(10px + env(safe-area-inset-bottom, 0px))!important;
    width:auto!important;
    max-height:calc(100dvh - 20px)!important;
    overflow-y:auto!important;
  }
  .fuh-article-note-textarea{
    font-size:16px!important;
    min-height:112px;
  }
  .fuh-highlight-actions button,
  .fuh-article-note-popover button{
    min-height:40px;
  }
}


/* v1.7.0: titleless embeddable widget with administrator-controlled border. */
.fuh-dashboard{
  border-style:solid!important;
  border-width:var(--fuh-widget-border-width,2px)!important;
  border-color:var(--fuh-widget-border-color,#03487e)!important;
  border-radius:var(--fuh-widget-border-radius,8px)!important;
}
.fuh-dashboard--borderless{border:0!important;border-radius:0!important}
