/* ============================================================
   SHARED PROJECTS (2.8.109): what was chosen in mockups/shared-projects/ — the «Personas» (People) sheet P1 (List),
   «Compartir» (Share) C3 (the «Personas» row in the project's sheet) and presence R8 (the capsule next to Settings, with
   «● 2», which only shows if someone is inside). In the glass of the sheets (glass-sheets.css, tokens --vd-fichas-*)
   and of the header (glass.css, --vd-*). The initials go on neutral grey, with no colour: the colour is always the
   project's.
   ============================================================ */

/* ---------- a person's initial; the olive dot = they are inside right now ---------- */
.share-av{position:relative;display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;flex:0 0 auto;
  font:700 12.5px/1 var(--font-head);letter-spacing:.01em;color:var(--text);background:rgba(26,22,17,.09);box-shadow:inset 0 0 0 1px rgba(26,22,17,.08)}
:is(:root[data-theme="dark"],html.glass.gl-night) .share-av{background:rgba(255,255,255,.14);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
.share-av.bigger{width:34px;height:34px;font-size:14px}
.share-av.inside::after{content:"";position:absolute;right:-1px;bottom:-1px;width:9px;height:9px;border-radius:50%;background:var(--olive-fill);box-shadow:0 0 0 2px rgba(255,255,255,.92)}
:is(:root[data-theme="dark"],html.glass.gl-night) .share-av.inside::after{box-shadow:0 0 0 2px rgba(24,28,26,.95)}

/* ---------- R8 · the capsule next to Settings (the shape of the Notes box when it floats: 38 px, 8 px from the gear) ---------- */
.top-actions .share-top{position:relative;height:38px;min-width:38px;display:inline-flex;align-items:center;gap:6px;padding:0 14px 0 12px;border:1px solid var(--border);
  border-radius:999px;cursor:pointer;background:var(--surface);color:var(--text);font:700 13.5px var(--font-head);transition:transform .12s,box-shadow .2s;
  animation:compArribaEntra .32s cubic-bezier(0.23,1,0.32,1) both}
html.glass .top-actions .share-top{border:0;background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,0) 42%),var(--vd-caja);
  -webkit-backdrop-filter:var(--vd-blur);backdrop-filter:var(--vd-blur);box-shadow:inset 0 0 0 1px var(--vd-borde),inset 0 1px 0 var(--vd-brillo)}
.top-actions .share-top:active{transform:scale(.95)}
.top-actions .share-top .glyph{font-size:18px}
.top-actions .share-top[aria-expanded="true"]{box-shadow:inset 0 0 0 1.5px var(--olive-soft),inset 0 1px 0 var(--vd-brillo,transparent)}
.share-top-live{width:7px;height:7px;border-radius:50%;flex:0 0 auto;background:var(--olive-fill);box-shadow:0 0 0 3px rgba(157,190,134,.28)}
.share-top-n{font-variant-numeric:tabular-nums}
@keyframes compArribaEntra{from{opacity:0;transform:translateX(8px) scale(.96)}to{opacity:1;transform:none}}

/* the short list when tapped: one line per person (dot, name and «ahora» (now) or when they were last in), no title
   and no faces */
:is(#shareList,#shareWho,#shareMade){position:fixed;z-index:60;padding:6px;border-radius:18px;color:var(--text);background:var(--surface);box-shadow:var(--shadow-lg);
  animation:compListaEntra .2s cubic-bezier(0.23,1,0.32,1) both;transform-origin:top right}
html.glass :is(#shareList,#shareWho,#shareMade){background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,0) 32%),var(--vd-fichas-pop);
  -webkit-backdrop-filter:var(--vd-fichas-blur);backdrop-filter:var(--vd-fichas-blur);
  box-shadow:inset 0 0 0 1px var(--vd-fichas-filo),inset 0 1px 0 var(--vd-fichas-brillo),var(--vd-fichas-sombra-pop)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) :is(#shareList,#shareWho,#shareMade){--text:#fff;--muted:rgba(255,255,255,.76);--faint:rgba(255,255,255,.6)}
@keyframes compListaEntra{from{opacity:0;transform:translateY(-6px) scale(.97)}to{opacity:1;transform:none}}
:is(#shareList,#shareWho,#shareMade) .share-l-row{display:flex;align-items:center;gap:9px;padding:8px 10px;font-size:14px}
:is(#shareList,#shareWho,#shareMade) .share-l-row i{width:7px;height:7px;border-radius:50%;flex:0 0 auto;box-shadow:inset 0 0 0 1.5px var(--faint)}
:is(#shareList,#shareWho,#shareMade) .share-l-row.inside i{background:var(--olive-fill);box-shadow:none}
:is(#shareList,#shareWho,#shareMade) .share-l-row b{flex:1;min-width:0;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:is(#shareList,#shareWho,#shareMade) .share-l-row span{flex:0 0 auto;font-size:12.5px;color:var(--faint)}
:is(#shareList,#shareWho,#shareMade) .share-l-row.inside span{color:var(--olive);font-weight:600}
:is(#shareList,#shareWho,#shareMade) .share-l-empty{padding:10px;font-size:13px;color:var(--faint)}
#shareList .share-l-footer{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:2px;padding:9px 10px;border:0;border-top:1px solid rgba(26,22,17,.09);
  background:none;cursor:pointer;font:600 13px var(--font-body);color:var(--muted);border-radius:0 0 12px 12px}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) #shareList .share-l-footer{border-top-color:rgba(255,255,255,.12)}
#shareList .share-l-footer .glyph{font-size:15px;color:var(--faint)}
@media(hover:hover){#shareList .share-l-footer:hover{color:var(--text)}}

/* ---------- phase 3 (2.10.1) · the notices in the bell: B7, a glyph in a thin ring (the row is the bell's own,
   messages.css). The olive ring for «hecha»; .msg-av.hecha is the filled one of «Ya está en Lume», so this one has
   its own class. The «hecha» small line may take three lines: the day is at its end ---------- */
.notices-row .msg-av.share-ring{background:transparent;border-color:transparent;box-shadow:inset 0 0 0 1.5px var(--border);color:var(--muted)}
.notices-row .msg-av.share-ring .glyph{font-size:14px;stroke-width:2.4}
.notices-row .msg-av.share-ring.hecha{background:transparent;box-shadow:inset 0 0 0 1.5px var(--olive-fill);color:var(--olive)}
.notices-row .msg-av.share-ring.hecha .glyph{stroke-width:2.6}
.notices-row.share-notice small{-webkit-line-clamp:3}

/* ---------- C3 · the «Personas» row in the project's sheet (Settings) ---------- */
#sheetBox .share-f3-row{width:100%;display:flex;align-items:center;gap:11px;padding:9px 12px 9px 10px;border:1px solid var(--border);border-radius:15px;cursor:pointer;
  color:var(--text);font-family:inherit;background:var(--bg);transition:box-shadow .15s}
html.glass #sheetBox .share-f3-row{border:0;background:var(--vd-fichas-campo);box-shadow:inset 0 0 0 1px var(--vd-fichas-campo-borde)}
@media(hover:hover){html.glass #sheetBox .share-f3-row:hover{box-shadow:inset 0 0 0 1px var(--olive-soft)}}
#sheetBox .share-f3-stack{display:inline-flex;flex:0 0 auto}
#sheetBox .share-f3-stack .share-av{width:30px;height:30px;font-size:13px;margin-left:-8px;box-shadow:inset 0 0 0 1px rgba(26,22,17,.08),0 0 0 2px rgba(255,255,255,.8)}
:is(:root[data-theme="dark"],html.glass.gl-night) #sheetBox .share-f3-stack .share-av{box-shadow:inset 0 0 0 1px rgba(255,255,255,.1),0 0 0 2px rgba(24,28,26,.9)}
#sheetBox .share-f3-stack .share-av:first-child{margin-left:0}
#sheetBox .share-f3-txt{flex:1;min-width:0;text-align:left;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sheetBox .share-f3-txt small{display:block;font-size:12px;font-weight:500;color:var(--faint)}
#sheetBox .share-f3-row > .glyph{font-size:16px;color:var(--faint);flex:0 0 auto}
/* the “shared” icon in the list of projects in Settings */
.share-proj-ic{display:inline-grid;place-items:center;color:var(--faint);font-size:14px;margin-right:2px;flex:0 0 auto}

/* ---------- the share sheet, the notice and the hints ---------- */
#sheetBox .share-notice{display:flex;gap:12px;align-items:flex-start;padding:14px 15px;margin-bottom:16px;border-radius:15px;background:var(--surface-2)}
html.glass #sheetBox .share-notice{background:var(--vd-fichas-campo);box-shadow:inset 0 0 0 1px var(--vd-fichas-campo-borde)}
#sheetBox .share-notice > .glyph{box-sizing:content-box;width:16px;height:16px;padding:7px;border-radius:50%;flex:0 0 auto;background:var(--olive-fill);color:var(--on-olive);text-shadow:var(--on-olive-sombra);font-size:16px}
:is(:root[data-theme="dark"],html.glass.gl-night) #sheetBox .share-notice > .glyph{color:#17191A}
#sheetBox .share-notice b{display:block;font-size:14px;margin-bottom:3px}
#sheetBox .share-notice span{font-size:13px;line-height:1.45;color:var(--muted)}
#sheetBox .share-hint{font-size:12px;line-height:1.4;color:var(--faint);margin:7px 0 0 15px}
#sheetBox .share-intro{font-size:14px;line-height:1.45;color:var(--muted);margin:-8px 0 16px}
#sheetBox .share-code{margin-top:14px}
#sheetBox .share-code .addbar{margin-top:0}
#sheetBox .share-code .share-hint{margin-top:8px}
#sheetBox .share-nm em{font-style:normal;font-size:11px;font-weight:600;padding:1px 7px;margin-left:4px;border-radius:999px;vertical-align:1px;
  background:var(--olive-bg);color:var(--text)}
html.glass #sheetBox .share-nm em{background:var(--vd-fichas-sel)}
/* joining: who invites, to what, and the code for the installed app */
#sheetBox .share-invite{display:flex;gap:12px;align-items:flex-start;padding:14px 15px;margin-bottom:16px;border-radius:15px;background:var(--surface-2)}
html.glass #sheetBox .share-invite{background:var(--vd-fichas-campo);box-shadow:inset 0 0 0 1px var(--vd-fichas-campo-borde)}
#sheetBox .share-invite-dot{width:14px;height:14px;border-radius:50%;flex:0 0 auto;margin-top:3px}
#sheetBox .share-invite b{display:block;font-size:15px;margin-bottom:4px}
#sheetBox .share-invite span{font-size:13px;line-height:1.45;color:var(--muted)}
#sheetBox .share-code-join{display:flex;align-items:center;gap:10px;padding:8px 8px 8px 15px;border-radius:15px;background:var(--surface-2)}
html.glass #sheetBox .share-code-join{background:var(--vd-fichas-campo);box-shadow:inset 0 0 0 1px var(--vd-fichas-campo-borde)}
#sheetBox .share-code-join span{font-size:12.5px;color:var(--muted)}
#sheetBox .share-code-join b{flex:1;min-width:0;font:700 16px var(--font-head);letter-spacing:.06em}
#sheetBox .share-hint-join{margin-bottom:4px}

/* ---------- P1 · the «Personas» sheet ---------- */
#sheetBox h3 .share-h3-proj{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font:600 12.5px var(--font-body);color:var(--muted);padding:4px 11px 4px 6px;border-radius:999px;
  background:var(--surface-2);max-width:46%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.glass #sheetBox h3 .share-h3-proj{background:var(--vd-fichas-campo);box-shadow:inset 0 0 0 1px var(--vd-fichas-campo-borde)}
#sheetBox h3 .share-h3-proj i{width:10px;height:10px;border-radius:50%;flex:0 0 auto}
#sheetBox .share-sub{font:600 12.5px var(--font-body);color:var(--muted);margin:18px 2px 8px 15px}
#sheetBox .share-inside{margin-left:auto;display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;color:var(--olive);flex:0 0 auto}
#sheetBox .share-inside i{width:8px;height:8px;border-radius:50%;background:var(--olive-fill)}
#sheetBox .share-red{color:var(--red)!important}
#sheetBox .share-link{border:0;background:none;padding:4px 0;cursor:pointer;font:600 12.5px var(--font-body);color:var(--olive);display:inline-flex;align-items:center;gap:6px}
/* the icon inside the buttons, only for this sheet's pieces (otherwise it moved the project sheet's bin by half a
   pixel) */
#sheetBox :is(.share-list,.share-linkbox,.share-footer,.share-leave-link,.share-code-join) :is(.mini,.btn):has(> .glyph){display:inline-flex;align-items:center;justify-content:center;gap:7px}
#sheetBox .share-list .mini .glyph,#sheetBox .share-linkbox .glyph,#sheetBox .share-footer .glyph,#sheetBox .share-link .glyph{font-size:15px}
#sheetBox .share-list{margin:0 0 4px}
#sheetBox .share-loading{padding:14px 2px;font-size:13px;color:var(--faint)}
#sheetBox .share-row{border-bottom:1px solid var(--border-soft)}
#sheetBox .share-row:last-child{border-bottom:0}
#sheetBox .share-row.tappable{cursor:pointer}
#sheetBox .share-row.tappable:focus-visible{outline:2px solid var(--olive-soft);outline-offset:-2px;border-radius:12px}
#sheetBox .share-row-in{display:flex;align-items:center;gap:11px;padding:10px 2px}
#sheetBox .share-row-in > .glyph{font-size:16px;color:var(--faint);flex:0 0 auto;transition:transform .18s}
#sheetBox .share-row.expanded .share-row-in > .glyph{transform:rotate(90deg)}
#sheetBox .share-nm{flex:1;min-width:0}
#sheetBox .share-nm b{display:block;font-size:14.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sheetBox .share-nm small{display:block;font-size:12px;color:var(--faint)}
#sheetBox .share-actions{display:flex;gap:8px;padding:0 2px 12px 47px}
/* the members' «Solo los dueños pueden invitar» (Only owners can invite), in its box */
#sheetBox .share-linkbox{padding:14px 15px;border-radius:15px;background:var(--surface-2)}
html.glass #sheetBox .share-linkbox{background:var(--vd-fichas-campo);box-shadow:inset 0 0 0 1px var(--vd-fichas-campo-borde)}
#sheetBox .share-linkbox-no{font-size:13px;color:var(--muted);line-height:1.45}
/* 2.10.4 · phase 4 (E4, mockups/shared-projects/phase-4/in-app): under «Invitar», the email box (the app's add box),
   the link as one wide neutral button (the sheet's glass .mini) and «Pendientes»: the email invitations and the live
   link, a quiet list with the envelope (or the chain) in the grey circle and «Anular» on the right */
#sheetBox .share-mail .add-box{margin:0}
#sheetBox .share-send-wide{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;margin-top:8px;padding:10px 14px;font-size:13.5px}
#sheetBox .share-send-wide .glyph{font-size:15px}
#sheetBox .share-sub2{margin-top:16px}
#sheetBox .share-pend{margin:0 0 2px}
#sheetBox .share-pend-row{display:flex;align-items:center;gap:11px;padding:9px 2px;border-bottom:1px solid var(--border-soft)}
#sheetBox .share-pend-row:last-child{border-bottom:0}
#sheetBox .share-pend-row .share-link{flex:0 0 auto}
.share-av.share-env .glyph{font-size:15px;color:var(--muted)}
/* the sign-in screen opened from the invitation email: «Crea tu cuenta» with this line on top */
#loginOverlay .share-login-inv{display:flex;gap:11px;align-items:flex-start;padding:12px 14px;margin:0 0 16px;border-radius:14px;
  background:rgba(138,169,120,.16);box-shadow:inset 0 0 0 1px rgba(86,110,64,.22);text-align:left}
#loginOverlay .share-login-inv > .glyph{font-size:19px;color:var(--olive);margin-top:1px;flex:0 0 auto}
#loginOverlay .share-login-inv b{display:block;font-size:14px;margin-bottom:2px}
#loginOverlay .share-login-inv span{display:block;font-size:12.5px;line-height:1.45;color:var(--muted)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) #loginOverlay .share-login-inv{background:rgba(157,190,134,.16);box-shadow:inset 0 0 0 1px rgba(157,190,134,.3)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) #loginOverlay .share-login-inv > .glyph{color:#9DBE86}

/* bottom: stop sharing and delete for everyone (owner), or leave (member); «Borrar para todos» (Delete for everyone)
   is a capsule, not the bin circle */
#sheetBox .share-footer{margin-top:22px}
#sheetBox .share-footer2{margin-top:10px}
html.glass #sheetBox .share-footer .btn.danger{flex:1 1 auto!important;width:auto;height:auto;padding:14px 18px!important;border-radius:999px;display:inline-flex;align-items:center;justify-content:center}
#sheetBox .share-leave-link{display:flex;justify-content:center;margin-top:12px}

/* ---------- Settings ---------- */
#sheetBox .share-sw-row .lbl{min-width:0}

@media(prefers-reduced-motion:reduce){.top-actions .share-top,:is(#shareList,#shareWho,#shareMade){animation:none}#sheetBox .share-row-in > .glyph{transition:none}}

/* ---------- 2.9.5 · phase 2: who has the task, «Hecha por», the warning in the task's menu ---------- */
/* the capsule on the row (mockup T6): the little sister of the «● 1» at the top. 24 px, glass, the people glyph and
   the name (or the number). A 44 px touch area around it (::before) */
.item .share-cap{position:relative;flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;height:24px;margin-left:4px;padding:0 10px 0 8px;border-radius:999px;
  font:600 12px/1 var(--font-head);color:var(--muted);white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;
  background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--border-soft);transition:transform .12s}
html.glass .item .share-cap{background:linear-gradient(180deg,rgba(255,255,255,.3),rgba(255,255,255,0) 60%),rgba(255,255,255,.38);box-shadow:inset 0 0 0 1px rgba(26,22,17,.1),inset 0 1px 0 rgba(255,255,255,.6)}
:is(:root[data-theme="dark"],html.glass.gl-night) .item .share-cap{background:rgba(255,255,255,.09);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.item .share-cap::before{content:"";position:absolute;inset:-10px -4px}
.item .share-cap .glyph{font-size:14px}
.item .share-cap>span{max-width:96px;overflow:hidden;text-overflow:ellipsis}
.item .share-cap:active{transform:scale(.95)}
.item.simple .share-cap{margin-top:1px}
/* the list on tap (#shareWho) shares the look of the «● 1» capsule's list (#shareList, above) */
/* «Hecha por Ana» (H1): grey, on the line below the struck-through title. In the Daily a done row has no line below: this one is added */
.item .share-doneby{color:var(--faint);font-size:12.5px}
.item.simple .item-meta.share-only{margin-top:3px}
/* the warning inside the task's menu (A8): the header as a row of the app (the usual 28 px initial, the title and
   the sentence as its grey line), a thin divider and the two menu rows. The new content fades in where the menu was */
#pkPop .share-pk-head{display:flex;align-items:flex-start;gap:11px;padding:8px 10px 8px}
#pkPop .share-pk-head .share-av{margin-top:1px}
#pkPop .share-pk-avs{display:inline-flex;flex:0 0 auto}
#pkPop .share-pk-avs .share-av{margin-left:-6px;box-shadow:inset 0 0 0 1px rgba(26,22,17,.08),0 0 0 2px var(--surface)}
html.glass #pkPop .share-pk-avs .share-av{box-shadow:inset 0 0 0 1px rgba(26,22,17,.08),0 0 0 2px rgba(255,255,255,.7)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) #pkPop .share-pk-avs .share-av{box-shadow:inset 0 0 0 1px rgba(255,255,255,.1),0 0 0 2px rgba(24,28,26,.8)}
#pkPop .share-pk-avs .share-av:first-child{margin-left:0}
#pkPop .share-pk-tt{display:block;min-width:0}
#pkPop .share-pk-title{display:block;font-size:15px;font-weight:600;line-height:1.3;color:var(--text)}
#pkPop .share-pk-meta{display:block;margin-top:3px;font-size:12.5px;font-weight:500;line-height:1.38;color:var(--muted)}
#pkPop.share-pk-warn .pk-sep{margin:2px 8px 4px}
#pkPop .share-pk-ok{color:var(--olive);font-weight:600}
#pkPop.share-pk-warn>*{animation:sharePkIn .2s ease both}
@keyframes sharePkIn{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){#pkPop.share-pk-warn>*{animation:none}}

/* ---------- 2.10.5 · phase 5: who created it and who changed it last (mockups A4 «En la esquina» and C3 «Donde se lee») ---------- */
/* two short lines flush right in the small grey of «Hecha por Ana», 2 × 15 px (the height of the title's circle). No
   fill, no border, no icon. Tappable with nothing that looks like a button: a 44 px touch area that draws nothing, and
   on a mouse the words only darken a little */
#sheetBox .share-made{margin:-12px -6px;padding:12px 6px;display:flex;flex-direction:column;align-items:flex-end;min-width:0;flex:0 1 auto;
  text-align:right;white-space:nowrap;font:400 12.5px/15px var(--font-body);letter-spacing:0;text-transform:none;color:var(--faint);
  border-radius:8px;outline:none;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:color .15s}
#sheetBox .share-made[hidden]{display:none}
#sheetBox .share-made > span{max-width:100%;overflow:hidden;text-overflow:ellipsis}
@media(hover:hover){#sheetBox .share-made:hover{color:var(--muted)}}
#sheetBox .share-made[aria-expanded="true"]{color:var(--muted)}
#sheetBox .share-made:focus-visible{box-shadow:inset 0 0 0 1.5px var(--olive-soft)}
/* in a sheet's title (task, goal): at the right, before the copy button if there is one; without it, flush with the
   right edge of the fields */
#sheetBox h3 .share-made{margin-left:auto}
#sheetBox h3 .share-made:not([hidden]) + .sheet-copy{margin-left:6px}
/* the event's sheet has no title row: top right of its head, the two lines centred on the 42 px coloured icon */
#sheetBox .evd-head > .share-made{align-self:flex-start;margin:-6px -6px -12px 0}
/* the idea: inside the box with its text, at the right, centred on the text; archived, at the right of its mark's line */
#sheetBox .syn-note > .share-made{margin-left:auto;align-self:center;flex:0 0 auto}
#sheetBox .idea-line > .share-made{margin-left:auto;flex:0 0 auto}
/* the list it opens (#shareMade, with the look of #shareList above), over the sheet: the words, the name in bold */
#shareMade{z-index:70}
#shareMade .share-l-row{padding:8px 11px}
#shareMade .share-l-row b{font-weight:400}
#shareMade .share-l-row b em{font-style:normal;font-weight:600}
@media(prefers-reduced-motion:reduce){#sheetBox .share-made{transition:none}}
