/* =============================================================
 *  modals/group_info.css
 *  Extraído automaticamente de index.php.
 *  NÃO editar manualmente até remover o script de split.
 * ============================================================= */

    /* Área do nome + edição inline */
    .gi-hero-title-row {
      display: flex; align-items: center; justify-content: center;
      gap: 6px; margin-top: 8px; max-width: 100%;
    }
    .gi-hero-title {
      font-size: 20px; font-weight: 800; color: var(--text);
      max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
      cursor: pointer; padding: 2px 4px; border-radius: 6px;
      transition: background .15s;
    }
    .gi-hero-title.editable:hover { background: var(--surface-2, rgba(0,0,0,.04)); }
    .gi-hero-title-input {
      font-size: 20px; font-weight: 800; color: var(--text);
      border: 1px solid var(--accent); border-radius: 8px;
      padding: 4px 10px; outline: none; text-align: center;
      max-width: 260px; width: 100%;
      background: var(--panel);
    }
    .gi-title-save-btn {
      width: 30px; height: 30px; border-radius: 50%;
      background: var(--accent); color: #fff; border: none; cursor: pointer;
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
      transition: background .15s, transform .12s;
    }
    .gi-title-save-btn:hover { background: var(--accent-h); transform: scale(1.06); }
    .gi-title-save-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
    .gi-title-save-btn svg { width: 14px; height: 14px; fill: currentColor; }

    .gi-hero-sub { font-size: 12px; color: var(--text-3); font-weight: 600; text-align: center; padding: 0 6px; }

    /* Menu popover genérico (foto do grupo / ações de membro) */
    .gi-photo-menu,
    .gi-kebab-menu {
      position: fixed; z-index: 10090; min-width: 180px;
      background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
      box-shadow: 0 8px 24px rgba(0,0,0,.18); overflow: hidden;
      display: none;
    }
    .gi-photo-menu.open, .gi-kebab-menu.open { display: block; }
    .gi-photo-menu button,
    .gi-kebab-menu button {
      display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px;
      border: none; background: transparent; cursor: pointer; font-size: 14px;
      color: var(--text); text-align: left; font-weight: 600;
    }
    .gi-photo-menu button:hover, .gi-kebab-menu button:hover { background: var(--surface); }
    .gi-photo-menu button svg, .gi-kebab-menu button svg { width: 18px; height: 18px; fill: currentColor; color: var(--text-2); }
    .gi-photo-menu hr, .gi-kebab-menu hr { margin: 0; border: none; border-top: 1px solid var(--border); }
    .gi-photo-menu button.danger, .gi-kebab-menu button.danger { color: var(--danger, #dc2626); }
    .gi-photo-menu button.danger svg, .gi-kebab-menu button.danger svg { color: var(--danger, #dc2626); }


    /* Switch estilo iOS para as permissões do grupo */
    .gi-perm-toggle {
      position: relative; width: 40px; height: 22px; flex-shrink: 0;
      display: inline-block; cursor: pointer; user-select: none;
    }
    .gi-perm-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
    .gi-perm-toggle .gi-slider {
      position: absolute; inset: 0; background: var(--border-2); border-radius: 999px;
      transition: background .18s;
    }
    .gi-perm-toggle .gi-slider::before {
      content: ''; position: absolute; top: 2px; left: 2px;
      width: 18px; height: 18px; background: #fff; border-radius: 50%;
      box-shadow: 0 1px 3px rgba(0,0,0,.25);
      transition: transform .18s;
    }
    .gi-perm-toggle input:checked + .gi-slider { background: var(--accent); }
    .gi-perm-toggle input:checked + .gi-slider::before { transform: translateX(18px); }
    .gi-perm-toggle input:disabled + .gi-slider { opacity: .55; cursor: not-allowed; }
    .gi-perm-toggle.saving { opacity: .6; pointer-events: none; }
    .gi-perm-toggle.saving .gi-slider { background: var(--text-3); }

    .input-bar {
      padding: 12px 14px;
      padding-bottom: max(12px, var(--zori-safe-bottom));
      display: flex; flex-wrap: wrap; gap: 9px; align-items: flex-end;
      align-content: flex-end;
      background: var(--panel); border-top: 1px solid var(--border); flex-shrink: 0;
    }

    #msg-input {
      flex: 1; background: var(--surface); border: 1.5px solid var(--border);
      border-radius: 20px; padding: 10px 16px;
      font-size: 16px; font-weight: 500; color: var(--text); outline: none;
      resize: none; max-height: 120px; line-height: 1.5;
      transition: border-color .2s, box-shadow .2s;
    }
    #msg-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: var(--panel); }
    #msg-input::placeholder { color: var(--text-3); }

    .btn-send {
      width: 44px; height: 44px; border-radius: 50%;
      background: var(--accent); border: none; color: #fff; font-size: 18px;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      flex-shrink: 0; box-shadow: 0 3px 10px var(--accent-glow);
      transition: background .15s, transform .15s, box-shadow .2s;
    }
    .btn-send:hover   { background: var(--accent-h); }
    .btn-send:active  { transform: scale(.88); }
    .btn-send:disabled { background: var(--border-2); box-shadow: none; cursor: not-allowed; }

    .input-actions {
      display: flex; align-items: flex-end; flex-shrink: 0;
    }

    .btn-emoji {
      width: 44px; height: 44px; border-radius: 50%;
      padding: 0;
      background: var(--surface); border: 1.5px solid var(--border);
      color: var(--accent);
      cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
      transition: background .15s, transform .15s, border-color .15s, box-shadow .2s, color .15s;
      touch-action: manipulation; user-select: none; -webkit-user-select: none;
      -webkit-tap-highlight-color: transparent;
      flex-shrink: 0;
      margin-left: 8px;
    }
    .btn-emoji:hover  { background: var(--accent-soft); border-color: #c7d2fe; }
    .btn-emoji:active { transform: scale(.88); }
    .btn-emoji .emoji-graphic {
      display: block; width: 22px; height: 22px;
      background-color: currentColor;
      -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 22C6.48 22 2 17.52 2 12S6.48 2 12 2s10 4.48 10 10-4.48 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM7.5 11A1.5 1.5 0 1 1 9 9.5 1.5 1.5 0 0 1 7.5 11zm9 0A1.5 1.5 0 1 1 18 9.5 1.5 1.5 0 0 1 16.5 11zM12 18c-2.33 0-4.31-1.46-5.11-3.5h10.22C16.31 16.54 14.33 18 12 18z'/%3E%3C/svg%3E");
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 22C6.48 22 2 17.52 2 12S6.48 2 12 2s10 4.48 10 10-4.48 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM7.5 11A1.5 1.5 0 1 1 9 9.5 1.5 1.5 0 0 1 7.5 11zm9 0A1.5 1.5 0 1 1 18 9.5 1.5 1.5 0 0 1 16.5 11zM12 18c-2.33 0-4.31-1.46-5.11-3.5h10.22C16.31 16.54 14.33 18 12 18z'/%3E%3C/svg%3E");
      -webkit-mask-size: contain; mask-size: contain;
      -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
      -webkit-mask-position: center; mask-position: center;
      pointer-events: none;
    }

    #emoji-popover {
      position: fixed;
      z-index: 10070;
      width: min(360px, calc(100vw - 20px));
      height: min(420px, calc(100dvh - 140px));
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 14px;
      box-shadow: 0 18px 40px rgba(0,0,0,.22);
      overflow: hidden;
      display: none;
    }
    #emoji-popover.open { display: block; }
    #emoji-popover emoji-picker { width: 100%; height: 100%; }

    .btn-mic {
      width: 44px; height: 44px; border-radius: 50%;
      padding: 0;
      background: var(--surface); border: 1.5px solid var(--border);
      color: var(--accent);
      cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
      transition: background .15s, transform .15s, border-color .15s, box-shadow .2s, color .15s;
      touch-action: manipulation; user-select: none; -webkit-user-select: none;
      -webkit-tap-highlight-color: transparent;
      flex-shrink: 0;
    }
