
/* ===== Update114: PDF editor - plain text (no box) like GoodNotes, finger scrolls / pencil writes ===== */
html:root:root:root body .u114-layer{position:absolute;inset:12px;z-index:9;pointer-events:none;touch-action:pan-x pan-y pinch-zoom;--u114-s:1}
html:root:root:root body .u114-layer.is-active{pointer-events:auto}
html:root:root:root body .u114-note{position:absolute;margin:0;padding:0;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;cursor:grab;
  width:max-content;min-width:3ch;border:0;background:transparent;box-shadow:none;border-radius:4px}
html:root:root:root body .u114-note.has-width{width:var(--w)}
html:root:root:root body .u114-note-text{display:block;margin:0;padding:2px 5px;border:0;background:transparent;box-shadow:none;outline:none;min-width:2ch;
  color:var(--c,#1f2024);font:500 calc(var(--fs,16) * var(--u114-s,1) * 1px)/1.3 Arial,Helvetica,sans-serif;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;cursor:inherit;-webkit-user-select:none;user-select:none}
html:root:root:root body .u114-note.is-selected{outline:1.5px dashed #3d7de0;outline-offset:1px}
html:root:root:root body .u114-note.is-editing{cursor:text}
html:root:root:root body .u114-note.is-editing .u114-note-text{-webkit-user-select:text;user-select:text;touch-action:auto}
html:root:root:root body .u114-note.is-selected .u114-note-text:empty::before{content:"Type here…";color:rgba(0,0,0,.35)}
html:root:root:root body .u114-note-bar{position:absolute;left:0;bottom:calc(100% + 10px);display:none;align-items:center;gap:1px;padding:3px;background:#fff;border:1px solid rgba(0,0,0,.14);
  border-radius:999px;box-shadow:0 8px 22px rgba(0,0,0,.2);white-space:nowrap;z-index:3;-webkit-user-select:none;user-select:none;touch-action:none;cursor:default}
html:root:root:root body .u114-note.is-selected .u114-note-bar{display:flex}
html:root:root:root body .u114-note.bar-below .u114-note-bar{bottom:auto;top:calc(100% + 10px)}
html:root:root:root body .u114-note.bar-right .u114-note-bar{left:auto;right:0}
html:root:root:root body .u114-note-bar button{appearance:none;-webkit-appearance:none;border:0;background:transparent;border-radius:50%;min-width:40px;width:40px;height:40px;min-height:40px;padding:0;margin:0;
  font:700 15px/1 Arial,Helvetica,sans-serif;color:#1f2024;cursor:pointer;display:flex;align-items:center;justify-content:center}
html:root:root:root body .u114-note-bar button:hover{background:rgba(61,125,224,.12)}
html:root:root:root body .u114-note-bar .u114-grip{cursor:grab;font-size:19px;touch-action:none}
html:root:root:root body .u114-note-bar .u114-sep{width:1px;height:22px;background:rgba(0,0,0,.14);margin:0 2px}
html:root:root:root body .u114-note-bar .u114-color i{display:block;width:20px;height:20px;border-radius:50%;background:var(--c,#1f2024);box-shadow:inset 0 0 0 2px #fff,0 0 0 1px rgba(0,0,0,.35)}
html:root:root:root body .u114-resize{display:none;position:absolute;right:-14px;top:50%;width:28px;height:28px;margin-top:-14px;border-radius:50%;background:#fff;border:2px solid #3d7de0;
  box-shadow:0 2px 8px rgba(0,0,0,.25);cursor:ew-resize;touch-action:none}
html:root:root:root body .u114-note.is-selected .u114-resize{display:block}
html:root:root:root body .u114-text-tool.active-tool{background:var(--a-deep,#2b4c8c)!important;color:#fff!important}
html:root:root:root body .u114-help{margin:10px 2px 0;font-size:.82rem;line-height:1.5;color:var(--muted)}
html:root:root:root body .u114-help b{color:var(--ink)}
/* the two older text tools are replaced */
html:root:root:root body .u92-text-layer,html:root:root:root body .u95-text-layer,html:root:root:root body .u92-text-btn,html:root:root:root body .u95-text-tool,html:root:root:root body .u92-editor-help{display:none!important}

/* Update115: tool bar of the editor = one line, always visible (stays at the top while the page scrolls) */
html:root:root:root body .modal .task-actions.u115-tools{position:sticky;top:calc(var(--u115-pt,0px) * -1);z-index:30;display:flex;flex-wrap:nowrap;align-items:center;gap:6px;overflow-x:auto;overflow-y:hidden;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;background:#fff;padding:8px var(--u115-pr,14px) 8px var(--u115-pl,14px);
  margin:0 calc(var(--u115-pr,14px) * -1) 10px calc(var(--u115-pl,14px) * -1);border-bottom:1px solid rgba(0,0,0,.08);box-shadow:0 8px 14px -12px rgba(0,0,0,.4)}
html:root:root:root body .modal .task-actions.u115-tools::-webkit-scrollbar{display:none}
html:root:root:root body .modal .task-actions.u115-tools .btn{flex:0 0 auto;white-space:nowrap;padding:6px 10px;min-height:36px;font-size:.8rem;line-height:1.1;margin:0}
html:root:root:root body .u114-note-bar .u114-kbd{font-size:17px}

/* Update116: text is edited in a real <textarea> (iPadOS opens the keyboard for it); the old div only shows the text */
html:root:root:root body .u114-ta{position:absolute;left:0;top:0;width:100%;height:100%;box-sizing:border-box;margin:0;border:0;outline:0;border-radius:0;background:transparent;resize:none;overflow:hidden;
  color:var(--c,#1f2024);font-family:Arial,Helvetica,sans-serif;font-weight:500;line-height:1.3;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;
  -webkit-user-select:text;user-select:text;-webkit-appearance:none;appearance:none;caret-color:#3d7de0;touch-action:auto;opacity:0;pointer-events:none;z-index:1;-webkit-text-size-adjust:100%}
html:root:root:root body .u114-ta::placeholder{color:rgba(0,0,0,.35);opacity:1}
html:root:root:root body .u114-note.is-editing .u114-ta{opacity:1;pointer-events:auto}
html:root:root:root body .u114-note.is-editing .u114-note-text{visibility:hidden}
html:root:root:root body .u114-note.is-editing{-webkit-user-select:text;user-select:text;cursor:text}
html:root:root:root body .u103-ink-stage.u116-editing,html:root:root:root body .u103-ink-stage:has(.u114-note.is-editing){-webkit-user-select:text;user-select:text}
/* the site styles every textarea (border, white background, shadow, focus ring, all !important) - the page text must stay plain */
html:root:root:root body textarea.u114-ta,
html:root:root:root body textarea.u114-ta:focus,
html:root:root:root body textarea.u114-ta:focus-visible{
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:none!important;outline-offset:0!important;
  min-height:0!important;min-width:0!important;max-width:none!important;transition:none!important;font-family:inherit!important;resize:none!important}

