/* ---- Notes: quick capture + Process ---- */
/* 2.7.3: Notes without «+». A note is jotted with Enter and Sintetizar (Process) goes inside the
   box, on the right, where the «+» was. The field's right padding leaves room for the badge */
.note-box{position:relative;flex:1;display:flex}
.note-box.with-syn input{padding-right:72px}
.syn-mini{position:absolute;right:8px;top:50%;transform:translateY(-50%);height:30px;display:inline-flex;align-items:center;gap:5px;background:var(--olive-fill);color:var(--on-olive);text-shadow:var(--on-olive-sombra);border:none;border-radius:999px;padding:0 11px;font-family:var(--font-head);font-weight:700;font-size:13px;cursor:pointer}
:root[data-theme="dark"] .syn-mini{color:#17191A}
.syn-mini .glyph{font-size:14px}
.syn-mini:active{transform:translateY(-50%) scale(.94)}
.compose-bar{position:sticky;top:0;z-index:4;display:flex;gap:8px;background:var(--bg);padding:2px 0 12px}
.compose-bar input{flex:1;border:1.5px solid var(--olive-soft);border-radius:13px;padding:13px 14px;font-size:16px;background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
.compose-bar input:focus{outline:none;border-color:var(--olive)}
.compose-bar input::placeholder{color:var(--faint)}
/* 2.8.101: when scrolling down, the Notes box floats in the header. It already stuck to the top, but under the header,
   which since the glass is transparent: it swallowed the click and the gear sat on top of the box. Now it goes above
   (z-index 41, the header is 40), level with the gear and compact: 38 px tall, like the gear, as a capsule and narrowed
   just enough not to overlap the header's buttons (--hueco). It compacts gradually, at the pace of the scroll and with
   no timed animation: --p goes from 0 (page at the top) to 1 (box already stuck) and --pw too, but it reaches 1 before
   the box gets to the buttons' height. Both are set by noteFloat (app/notes.js). What it shrinks (11 px) is given back
   by the bottom margin in the same frame: the list below doesn't move. The box's strip takes the full width and
   doesn't catch taps: the gear can still be pressed */
#view-avisos .compose-bar{--p:0;--pw:0;z-index:41;top:calc(8px + env(safe-area-inset-top));pointer-events:none;margin-bottom:calc(11px * var(--p))}
#view-avisos .compose-bar .note-box{pointer-events:auto;min-width:0;margin-right:calc(var(--hueco,0px) * var(--pw))}
#view-avisos .compose-bar input{min-width:0;text-overflow:ellipsis;   /* no minimum width, so it can narrow (with «…» if it doesn't fit) */
  height:calc(49px - 11px * var(--p));padding-top:calc(13px * (1 - var(--p)));padding-bottom:calc(13px * (1 - var(--p)));border-radius:calc(13px + 6px * var(--p))}
#view-avisos .compose-bar .syn-mini{height:calc(30px - 2px * var(--p));right:calc(8px - 3px * var(--p))}
/* when jotting with the box floating, the new note lands at the top, out of view: «Apuntada ✓» (Noted ✓) in green for
   a moment */
#view-avisos .compose-bar.noted input::placeholder{color:var(--olive);opacity:1}
.arch-toggle{width:100%;text-align:left;background:none;border:none;color:var(--muted);font-family:var(--font-body);font-weight:700;font-size:12.5px;cursor:pointer;padding:6px 2px}
.note-back{opacity:1;color:var(--olive)}
/* 2.6.9: pages for the archived ones. Bottom right, small, like the rest of the controls */
.note-num{flex:0 0 auto;width:28px;text-align:right;color:var(--faint);font-family:var(--font-body);font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1;padding-top:3px}
.pg-nav{display:flex;justify-content:flex-end;align-items:center;gap:2px;margin-top:8px;flex-wrap:wrap}
.pg-b{min-width:30px;height:30px;padding:0 6px;border:none;background:none;border-radius:9px;color:var(--muted);font-family:var(--font-head);font-weight:600;font-size:13px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.pg-b .glyph{width:16px;height:16px}
.pg-b.on{background:var(--olive-bg);color:var(--olive);font-weight:700;cursor:default}
.pg-b:disabled{opacity:.3;cursor:default}
.pg-dots{min-width:18px;text-align:center;color:var(--faint);font-size:13px}
.pg-search{display:flex;align-items:center;gap:6px;margin:4px 0 8px}
.pg-search input{flex:1;min-width:0;height:38px;border:1px solid var(--border);border-radius:var(--radius-s);background:var(--surface);color:var(--text);font-family:var(--font-body);font-size:14.5px;padding:0 12px}
.pg-search input:focus{outline:none;border-color:var(--olive-soft)}
.note-arch{font-size:10px;font-weight:700;color:var(--olive);background:var(--olive-bg);border-radius:999px;padding:2px 8px;border-color:transparent}
/* 2.6.7: «Nombre: descripción» (Name: description) notes, with the same row as a normal note */
.auto-desc{color:var(--muted)}
.del.auto-ok,.del.auto-ok:active{opacity:1;color:var(--olive)}
/* 2.8.1: the ✕ for «No es un nombre» (Not a name), visible but dimmed, so the ✓ still leads */
.del.auto-no{opacity:1;color:var(--faint)}
.del.auto-no:active{color:var(--text)}   /* without the delete red: it doesn't delete anything */
/* the bubble for processing a note. 2.8.105: no pointer, and what's inside (Process's bar, in small) and the glass are
   in glass-process.css */
.bubble-back{position:fixed;inset:0;background:rgba(20,15,10,.10);z-index:60;animation:nubeFade .15s ease}
:root[data-theme="dark"] .bubble-back{background:rgba(0,0,0,.30)}
@keyframes nubeFade{from{opacity:0}to{opacity:1}}
.bubble{position:fixed;z-index:61;background:var(--surface);border:1px solid var(--border-soft);border-radius:16px;box-shadow:var(--shadow-lg);padding:12px;max-height:72vh;overflow:auto;transform-origin:top center;animation:nubePop .16s cubic-bezier(.2,.8,.3,1)}
/* 2.9.2: a dialog opened from the bubble (the duplicate warning) goes above it; before, it opened underneath and the
   first tap closed the bubble */
body.bubble-open #dlgOverlay{z-index:62}
/* 2.9.2: a note written on several lines (Shift+Enter in the quick note) keeps its lines in the list, the bubble and Process */
#view-avisos .item-title,.bubble-tx,#view-avisos .sy .sy-note{white-space:pre-line}
@keyframes nubePop{from{opacity:0;transform:scale(.96) translateY(-4px)}to{opacity:1;transform:none}}
.bubble.above{transform-origin:bottom center}
/* Process mode */
.syn-note{background:var(--surface-2);border:1px solid var(--border-soft);border-radius:14px;padding:20px;margin-bottom:16px;min-height:84px;display:flex;align-items:center;gap:11px}
.syn-note .imp{font-size:11px;font-weight:700;color:var(--amber);background:var(--amber-bg);border-radius:999px;padding:3px 9px;flex:0 0 auto}
.syn-note .t{font-family:var(--font-head);font-weight:700;font-size:18px;line-height:1.3}
.syn-lbl{font-size:12px;font-weight:700;color:var(--muted);margin:0 0 9px}
.dgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
@media(max-width:520px){.dgrid{grid-template-columns:1fr 1fr}}
.dgrid.of3{grid-template-columns:repeat(3,1fr)}   /* 2.7.7: the idea has three destinations (Hito, milestone, dropped): in a row */
@media(max-width:520px){.dgrid.of3{grid-template-columns:1fr 1fr}.dgrid.of3>.dest:last-child{grid-column:1/-1}}
.dest{display:flex;align-items:center;gap:9px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:13px;cursor:pointer;font-weight:600;font-size:13.5px;text-align:left;font-family:var(--font-body);color:var(--text);transition:.12s}
.dest:hover{border-color:var(--olive-soft)}
.dest .glyph{font-size:18px;color:var(--olive)}
.dest.soon{opacity:.5;cursor:default}
.dest.soon .mini{font-size:9px;color:var(--faint);font-weight:700}
.syn-row{display:flex;gap:9px;margin-top:10px;justify-content:flex-end}
