/* Edit together: Share button, faces of who's here, pointers, invite dialog. Used by every editor. */
.tg-wrap { display: inline-flex; align-items: center; gap: 6px; }
.tg-share { position: relative; gap: 6px; }
.tg-share.on { border-color: var(--green, #3d9a5b); }
.tg-dot { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--green, #3d9a5b); border: 2px solid var(--bg2, #fff); }
.tg-faces { display: inline-flex; flex-direction: row-reverse; }
.tg-faces:empty { display: none; }
.tg-face { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--c, #151515); background: var(--bg2, #fff); color: var(--ink, #151515); font: 700 11px/1 var(--font, system-ui); display: inline-grid; place-items: center; margin-left: -6px; cursor: pointer; padding: 0; box-shadow: 0 0 0 2px var(--bg1, #f6f2ea); }
.tg-face:hover { transform: translateY(-1px); z-index: 1; }
.tg-face.more { cursor: default; border-color: var(--line2, #ccc); }

.tg-cursors { position: fixed; inset: 0; pointer-events: none; z-index: 9000; overflow: hidden; }
.tg-cursor { position: absolute; left: 0; top: 0; will-change: transform; transition: opacity .3s; }
.tg-cursor svg { display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.tg-cursor span { position: absolute; left: 14px; top: 16px; color: #fff; font: 600 11.5px/1 var(--font, system-ui); padding: 4px 7px; border-radius: 6px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.tg-cursor.idle { opacity: .45; }

.tg-modal { position: fixed; inset: 0; z-index: 9500; background: rgba(21,21,21,.36); display: grid; place-items: center; padding: 16px; }
.tg-box { position: relative; width: min(500px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--bg2, #fffdf8); color: var(--ink, #151515); border: 1.5px solid var(--ink, #151515); border-radius: 14px; box-shadow: 6px 6px 0 var(--ink, #151515); padding: 22px 22px 18px; font: 14px/1.45 var(--font, system-ui); }
.tg-box h2 { margin: 0 0 6px; font: 700 22px/1.2 var(--serif, Georgia, serif); }
.tg-box h3 { margin: 16px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute, #5b554b); }
.tg-box p { margin: 0 0 12px; color: var(--mute, #5b554b); }
.tg-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--mute, #5b554b); }
.tg-field { display: grid; gap: 5px; font-weight: 600; font-size: 13px; margin: 10px 0; }
.tg-field input { height: 36px; border: 1.5px solid var(--line2, #ccc); border-radius: 8px; padding: 0 10px; font: inherit; font-weight: 400; background: #fff; color: inherit; min-width: 0; }
.tg-field input:focus { outline: 2px solid var(--blue, #2f5bea); outline-offset: 1px; }
.tg-link { display: flex; gap: 6px; }
.tg-link input { flex: 1; font-size: 12.5px; }
.tg-link .btn { height: 36px; }
.tg-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tg-small { font-size: 12.5px; }
.tg-small.err { color: #b3261e; }
.tg-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tg-people li { display: flex; align-items: center; gap: 8px; }
.tg-people i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--c); display: inline-grid; place-items: center; font: 700 10.5px/1 var(--font, system-ui); font-style: normal; }
.tg-people em { color: var(--dim, #8a8378); font-style: normal; }

.tg-notes { position: fixed; left: 16px; bottom: 44px; z-index: 9400; display: grid; gap: 6px; pointer-events: none; }
.tg-note { background: var(--ink, #151515); color: var(--paper, #f4f1ea); padding: 8px 12px; border-radius: 10px; font: 600 13px/1.3 var(--font, system-ui); box-shadow: 0 6px 18px rgba(0,0,0,.2); transition: opacity .3s, transform .3s; max-width: min(360px, calc(100vw - 32px)); }
.tg-note.out { opacity: 0; transform: translateY(6px); }
.tg-banner { position: fixed; left: 50%; top: 64px; transform: translateX(-50%); z-index: 9400; background: var(--sun, #ffc531); color: var(--ink, #151515); border: 1.5px solid var(--ink, #151515); border-radius: 999px; padding: 7px 14px; font: 600 13px/1.3 var(--font, system-ui); max-width: calc(100vw - 32px); text-align: center; }
.tg-banner[hidden] { display: none; }
.tg-joining { position: fixed; inset: 0; z-index: 9600; background: rgba(244,241,234,.86); display: grid; place-items: center; font: 14px var(--font, system-ui); color: var(--ink, #151515); }
.tg-joining div { display: grid; gap: 4px; text-align: center; }
.tg-joining b { font: 700 22px var(--serif, Georgia, serif); }
@media (max-width: 760px) { .tg-share span { display: none; } .tg-faces { display: none; } }
.tg-sel { position: fixed; border: 2px solid var(--c); border-radius: 3px; transform-origin: center; }
.tg-sel b { position: absolute; left: -2px; top: -19px; background: var(--c); color: #fff; font: 600 11px/1 var(--font, system-ui); padding: 3px 6px; border-radius: 4px 4px 4px 0; white-space: nowrap; }
.tg-block { box-shadow: -3px 0 0 var(--c); }
.tg-bar { position: fixed; width: 4px; border-radius: 2px; background: var(--c); }
.tg-bar b { position: absolute; right: 8px; top: 0; background: var(--c); color: #fff; font: 600 11px/1 var(--font, system-ui); padding: 3px 6px; border-radius: 4px; white-space: nowrap; }
.tg-share { white-space: nowrap; }
/* The design editor's top bar is full: show just the icon there on narrower screens. */
@media (max-width: 1480px) { .top-actions:has(#magicBtn) .tg-share span { display: none; } .top-actions:has(#magicBtn) .tg-share { padding: 0 10px; } }
